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

Best way to create own auto number practise?

Status
Not open for further replies.

Ktx7ca

IS-IT--Management
Apr 5, 2008
88
CA
OH the front ends are running on access 2003 and 2010.
 

best way to create my own auto number code
I do it something like this:
Code:
INSERT INTO tblMyTable([blue]MyAutoNo[/blue], ABC, XYZ, ...)
VALUES([blue](SELECT MAX(MyAutoNo) + 1 FROM tblMyTable)[/blue], 'AbcD', 123, ...)

Have fun.

---- Andy
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top