A simple formula so the previous record number adds 1 for a new record

Julia

New member
Local time
Today, 17:23
Joined
Jul 24, 2009
Messages
9
Hiya

I have a list of data ordered by Record Number. At the moment, the last record is 2555.

I want to be able to use the form to go onto add new record and it start with 2556.

Is there a formula I can enter into Default Value in design view what will do this? I havent used autonumber.

Just want something simple!

thanks
 
Julia,

In Design View, set [Record Number] --> Enabled = No

Use your form's BeforeInsert Event:

[Record Number] = DMax("[Record Number]", "YourTable")

Wayne
 
Wayne: Did you mean

[Record Number] = DMax("[Record Number]", "YourTable") + 1

?
 

Users who are viewing this thread

Back
Top Bottom