Autonumber

G

Guest

I have a Field called ‘Batch No’ which is set as an Autonumber and is the
Primary Key in my Table. On my Form I have set the control source of the
Batch no to:

=Date() & Format([BNS Batch no],"0")

This is so it will output the current date followed by the Autonumber every
time a new record is started (e.g. 25/10/20061, 25/10/20062, 25/10/20063,
25/10/20064 etc). Is there any way where I can get the Autonumber to start
again from ‘1’ when a new day starts? So the next day will be: 26/10/20061,
26/10/20062, 26/10/20063, 26/10/20064 etc)
 
G

Guest

Autonumbers are not for generating sequences, but to provide unique
identifiers that should have no meaning to users. Ask yourself this: Does it
matter if autonumbers are assigned sequentially, or at random? If it does,
then you shouldn't be using Autonumber. There are other methods for
controlling sequential numbering.
 

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