Auto number field

B

blake7

Hi All, I would like to know if it is possible to renumber an auto number
field, I know this is scoffed upon and goes against the principals of
database management, but i would really like to know if it can be done. I am
currently using data imported from an excel sheet which my company uses for a
tracking system, I intend to start a fresh table when I have finished writing
and testing the database so would like this new table to start at a number
beyond the current excel sheet.

What is the easiest way to start the new table at 20000

Thanks
 
J

Jeff Boyce

You've said "how", but not why ...

If you'll describe the business need you are trying to solve, folks here may
be able to offer appropriate suggestions.

.... or maybe you've already decided which approach you are going to use, and
just want someone to tell you which button to push...

Good luck!

Regards

Jeff Boyce
Microsoft Access MVP

--
Disclaimer: This author may have received products and services mentioned
in this post. Mention and/or description of a product or service herein
does not constitute endorsement thereof.

Any code or pseudocode included in this post is offered "as is", with no
guarantee as to suitability.

You can thank the FTC of the USA for making this disclaimer
possible/necessary.
 
B

blake7

Hi Wayne, Never thought of that, were do you place the max lookup +1
statement and how is it writen etc
Thanks
 
W

Wayne-I-M

Hi

There are lot of ways to use it
I don't really understand what you're trying to do but if it were me (I like
to check stuff 1st) I would import all you data into a table then either loop
through the records with a dmax + 1 on your new field (20,000) or you could
use a query to add it to the field in the table.

There are zillions of examples on google (search on "ms access dmax +1"),
just have a look around and see which method suits your needs best.
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Top