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!

Button to insert an Autonumber into an existing text field

Status
Not open for further replies.
Dec 14, 2003
22
US
We have an Access database for quoting jobs. Currently, we enter a Quote# manually into a text field (generally a number but frequently followed by a letter). I would like to create a button that could be used to insert the current AutoNumber field data into the Quote# field. The AutoNumber would not be used for every quote.
 
If this is use on a form with a recordsource that includes the autonumber, you could try:

Me.txtQuoteControlName=Me!AutoNumberFieldName
 
I would strongly suggest not to use AutoNumber for anything that has any meaning to the user whatsoever.
Remember: it's not guaranteed to be in sequence and it's not possible to change it.
It's only supposed to be unique.


Someday someone will ask you about the missing number. That will be an accountant, not a DBA

HTH




[pipe]
Daniel Vlas
Systems Consultant

 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top