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 gkittelson on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

Dmax Question

Status
Not open for further replies.

milte

Technical User
Jan 30, 2002
20
US
Hello everyone,

Although an easy question for all, I still need assistance.

I have a text box which increments +1 when a new record is added. I have it placed on the control of the text box, but would like to have it automatically run when the form is opened. The code in the control is:

Me.Auto_Num.Text = DMax("Auto_Num", "tblMaster") + 1

Thanks for your help.
Milt
 
How are ya milte . . .

Transfer your code to the [blue]On Current[/blue] event of the form!

Calvin.gif
See Ya! . . . . . .
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top