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

Using Form Record Number

Status
Not open for further replies.

bulldawg15

Programmer
May 19, 2005
11
US
Is there any way that I can set the default value of a text box on a form to be what its record number is for that specific form? Basically I want the default value to be the number that shows on the bottom of the form in the navigation section. Thanks for the help.
 
How are ya bulldawg15 . . . . .

In the forms [blue]OnCurrent[/blue] event, copy/paste the following:
Code:
[blue]   Me![purple][b]TextBoxName[/b][/purple].DefaultValue = Me.CurrentRecord[/blue]

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

Part and Inventory Search

Sponsor

Back
Top