Is it possible to change the starting number in Auto Number?

G

Guest

I'm creating a billing invoice and using the Auto Number feature. It is
possible to change the starting number (eg. from 1 to 0001)?
 
R

Rick B

Do a search and read the previous posts. Asked and answered all the time.
You should not use an autonumber field for this.
 
R

Rick B

Oops. I read your original post as 1 and 1000.

Lynn's post is more appropriate.

But, you still can find a hundred previous posts out there related to
formatting a number with leading zeros.
 
F

fredg

I'm creating a billing invoice and using the Auto Number feature. It is
possible to change the starting number (eg. from 1 to 0001)?

You should not be using an AutoNumber field for anything other than
assuring that each record's ID is unique.

If you wish to assign an Invoice number in a consecutive fashion,
create your own InvoiceNum field.
You can make it Number datatype, Integer field size.

Then increment it on your form in the InvoiceNum control's Default
Value property:
Nz(DMax("[InvoiceNum]","TableName"),0) + 1

Set the Format property of the field to:
0000

and it will display as 0001, 0002, etc.
 
J

Joseph Meehan

Jussca said:
I'm creating a billing invoice and using the Auto Number feature. It
is possible to change the starting number (eg. from 1 to 0001)?

Others have already addressed the leading zero issue. Now about
autonumbers where you or anyone will be looking at the numbers. Be aware
that autonumber is designed to provide unique numbers. It is not designed
to produce consecutive numbers, although it will do it most of the time.

When people start looking at the list and see numbers missing or out of
order, they are going to think they have a problem.

You can create a system to give consecutive numbers if you like.
 

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