Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations Wanet Telecoms Ltd on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

Using DMAX to establish unique records...help!

Status
Not open for further replies.

HRISmess

MIS
Jun 28, 2005
13
US
I have a user form that I have created a field named "Transaction Number" for, which is not the primary key for the table used to build the form.

I need to accomplish the following:

1) Create an indexed value with no duplicates in the "Transaction Number" field, that can update itself dynamically as the user navigates from record to record.

Currently, I am using the following as the default value logic:
=DMax("[TransactionNumber] ","Transactions")+1

The above logic seemed to have solved the riddle; however, when I tab to add a new record the "Transaction Number" does not calculate correctly. I think I need some AfterUpdate logic orperhaps a requery, but am having some trouble.

Help!
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top