How do I customize my numbering sequence

  • Thread starter Thread starter Guest
  • Start date Start date
Hi,

If you are talking about an Autonum field, insert a record into your table
that inserts 9999 into the Autonum field. Compact and Repair your database,
THEN delete the dummy record. (if you compact/repair after deleting the
dummy record your autonum field will be reset).

eg: docmd.runsql "Insert into TABLENAME(IDFIELD) values(9999)", true

The next record you insert into that table will be ID 10000.

Hope this helps!

Damian.
 

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