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!

Automatically Incrementing an alphanumeric number in a field

Status
Not open for further replies.

noah0295

Technical User
Jan 25, 2002
1
US
I would like to have a field that automatically increments an alpha-numeric number in a field.

My table name is tblquest and the field that I want to auto increment is Region Code.
The sequence starts as SQ0001.

This is probably simple for somebody, but I can't find any documentation on autonumbering when using a alpha-numeric number.

Thanks,

Schann Holladay
 
Schann:

You can't use an alphnumeric in autonumber.

I use a DMax function in the On Click event of the Add Record button to find the last used number. I then increment it by one and assign it to the the record number of the newly added record.
Larry De Laruelle
ldelaruelle@familychildrenscenter.org

 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top