Access VBA - Sequential Numbering

By brian.ramshaw ·
Hi, I am new to the Access scene and would appreciate any help you could offer.
I have a very simple form containing 3 fields "project", "ID", "Ref"
The ID feild is the PK in a table "tblRaail"
What I require is to search the "Ref" per "Project" number and increment (+1) for a new record.

This is what I have come up with so far, but it returns nothing, please help.

NextID = DLookup("[ProjectNumber]", "tblRail", DMax("Ref", "tblRail") + 1)

This conversation is currently closed to new comments.

0 total posts (Page 1 of 1)  
| Thread display: Collapse - | Expand +

All Answers

Share your knowledge
Back to Software Forum
0 total posts (Page 1 of 1)  

Related Discussions

Related Forums