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

Primary Key in Make Table query?

Status
Not open for further replies.

fastrunr

Technical User
Nov 4, 2004
35
US
Within a make table query, is there any way to create an autonumber field and set it as the primary key of the new table?

Thanks!
Liz
 
CREATE TABLE Employees
(
EmpID Counter Not Null Constraint EmpID primary key
, First_Name TEXT(20)
, Last_Name TEXT(25)
, dob DATETIME
);

Sam_F
"90% of the problem is asking the right question.
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top