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

how to create an AutoNumber field in VBA?

Status
Not open for further replies.

gc

MIS
Mar 8, 2001
68
US
I use DAO to create a temp table. But I don't know how to create an Autonumber field in that table directly. Microsoft has a code using function to create the autonumber field. This means after create the temp table I should call the function to add the autonumber field in the temp table.
Is there a way to add some code in Create table statement instead of calling the function?
Thank you very much in advance!
George
 
hi
Its not very obvious, but to create an AutoNumber field you have to use as data type COUNTER Mal'chik
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top