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

Make-Table with Unique ID (Autonumber) Field

Status
Not open for further replies.

jwruble

Programmer
May 29, 2002
16
0
0
US
Is it possible to create a make-table query with one of it's columns being generated as a unique id for each row? Thanks for any help.
 
In VBA:
DoCmd.RunSQL "MakeTableQuery"
DoCmd.RunSQL "ALTER TABLE myTable ADD COLUMN myID COUNTER(1,1) CONSTRAINT PrimaryKey PRIMARY KEY;"

Hope This Helps, PH.
Want to get great answers to your Tek-Tips questions? Have a look at FAQ219-2884 or FAQ181-2886
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top