Resetting AutoNumbers

  • Thread starter Thread starter Guest
  • Start date Start date
G

Guest

Re. the advice (of 12/23/04) from Allen Browne, on Access 2000 + up; because
I am not d/b literate, I just want to make sure that I am about to do the
correct thing.

I did make a copy of my d/b. From the db window >Modules >New, you write
that Access opens a new code window. The window I get shows a heading of
"Module 1 (Code)", and drop-down menus labelled "General" and "Declarations",
and within the dialog area (is this the "code window"?), the words "Option
Compare Database" appear. Do I just copy/paste "? AutoNumFix( )" beside
that? Below that? ("that", being the words "Option Compare Database")

And then, after doing this I go to Tools, >References, and check the box
"Microsoft ADO Ext. 2.x for DDL and Security", >Debug >Compile; Press Ctrl+G
to open the Immediate Window, and enter the code "? AutoNumFix( )" again
(without the quote marks)?

Thanks again everyone for all the help.
 
Presumably you are talking about this link:
http://members.iinet.net.au/~allenbrowne/ser-40.html

Yes, paste the code below the Option Compare ... line.

When you add the references, the "2.x" will appear as "2.7" or some other
number.

When you press enter after the "? AutoNumFix( )" in the immediate window,
you will receive a message box asking for confirmation about each table that
it thinks needs changing.
 

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

Back
Top