Combining year field and autonumber

C

Coni Fields

I need the code for starting the year at 1 October and
resetting autonumber back to 001 so it would read 2004001
up until 30 sept and 1 oct it would change to 2005001.
Thanks
 
J

John Vinson

I need the code for starting the year at 1 October and
resetting autonumber back to 001 so it would read 2004001
up until 30 sept and 1 oct it would change to 2005001.
Thanks

You cannot do this with an Autonumber. You'll need to maintain the
number yourself in VBA code. This code can become fairly complex if
it's a multiuser system - I use some copyrighted code from the Access
Developer's Handbook so I can't post it here, but look in Google for
"Access Custom Counter" - there are several examples around.
 

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

Similar Threads

Autonumber field in Excel that behaves the same as Access 0
Autonumber field with semi-static text? 4
Part Autonumber 2
Autonumber 7
AutoNumber 4
Autonumber Macro 3
Autonumber 2
VBA word change keys 0

Top