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. |
|
|
Thread Tools | Display Modes |
#1
|
|||
|
|||
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
|
|||
|
|||
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
|
|||
|
|||
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
|
|||
|
|||
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 | |
|
|