A Microsoft Office (Excel, Word) forum. OfficeFrustration

If this is your first visit, be sure to check out the FAQ by clicking the link above. You may have to register before you can post: click the register link above to proceed. To start viewing messages, select the forum that you want to visit from the selection below.

Go Back   Home » OfficeFrustration forum » Microsoft Access » General Discussion
Site Map Home Register Authors List Search Today's Posts Mark Forums Read  

CHANGING A FIELD



 
 
Thread Tools Display Modes
  #1  
Old May 8th, 2009, 02:22 PM posted to microsoft.public.access
Pat
external usenet poster
 
Posts: 677
Default CHANGING A FIELD

Is it possible to change a field from a number to an autonumber after records
have been added. If so, please provide step by step instructions!!
I have a donation table that I enter each receipt number (consecutively), it
would be better if the table was set up to do this on its own thereby not
missing a sequence by mistake.
--
Thanks, Pat
  #2  
Old May 8th, 2009, 02:43 PM posted to microsoft.public.access
Allen Browne
external usenet poster
 
Posts: 11,706
Default CHANGING A FIELD

You cannot change a Number field to an AutoNumber, but you can achieve the
same result like this:

1. Create a new table with the fields you want (including the AutoNumber.)

2. Use an Append query to select the records from your old table, and add
them to your new table.

--
Allen Browne - Microsoft MVP. Perth, Western Australia
Tips for Access users - http://allenbrowne.com/tips.html
Reply to group, rather than allenbrowne at mvps dot org.

"Pat" wrote in message
...
Is it possible to change a field from a number to an autonumber after
records
have been added. If so, please provide step by step instructions!!
I have a donation table that I enter each receipt number (consecutively),
it
would be better if the table was set up to do this on its own thereby not
missing a sequence by mistake.
--
Thanks, Pat


  #3  
Old May 8th, 2009, 03:26 PM posted to microsoft.public.access
Pat
external usenet poster
 
Posts: 677
Default CHANGING A FIELD

That was easy and awesome, thank you.
--
Thanks, Pat


"Allen Browne" wrote:

You cannot change a Number field to an AutoNumber, but you can achieve the
same result like this:

1. Create a new table with the fields you want (including the AutoNumber.)

2. Use an Append query to select the records from your old table, and add
them to your new table.

--
Allen Browne - Microsoft MVP. Perth, Western Australia
Tips for Access users - http://allenbrowne.com/tips.html
Reply to group, rather than allenbrowne at mvps dot org.

"Pat" wrote in message
...
Is it possible to change a field from a number to an autonumber after
records
have been added. If so, please provide step by step instructions!!
I have a donation table that I enter each receipt number (consecutively),
it
would be better if the table was set up to do this on its own thereby not
missing a sequence by mistake.
--
Thanks, Pat



  #4  
Old May 8th, 2009, 04:47 PM posted to microsoft.public.access
John Spencer MVP
external usenet poster
 
Posts: 533
Default CHANGING A FIELD

However, you should be aware that autonumbers will develop gaps in the
sequence and can (in certain circumstances) start generating numbers that are
not sequential at all.

If having an unbroken sequence is important then you need to use a long
integer number field and you need to use VBA code to generate the numbers.

John Spencer
Access MVP 2002-2005, 2007-2009
The Hilltop Institute
University of Maryland Baltimore County

Pat wrote:
That was easy and awesome, thank you.

 




Thread Tools
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

vB code is On
Smilies are On
[IMG] code is Off
HTML code is Off
Forum Jump


All times are GMT +1. The time now is 08:55 AM.


Powered by vBulletin® Version 3.6.4
Copyright ©2000 - 2024, Jelsoft Enterprises Ltd.
Copyright ©2004-2024 OfficeFrustration.
The comments are property of their posters.