Creating tables with autonumber/primary key

  • Thread starter Thread starter Vsn
  • Start date Start date
V

Vsn

Hello all,

Could someone help me on the simplest function to create a table including a
field which numbers automaticly and is the primary key. It would help me a
lot.

Many thanks,
Ludovic
 
In the table design make the data type AutoNumber. Then
select that line (highlight it) then press the Key button
in the toolbar.
 
Thanks for the advice, but I was actualy looking for code to do the same.

Thx
 
Hello Ludovic,

Try one of the following KB articles:

Using DAO
Create and Drop Tables and Relationships Using SQL DDL
http://support.microsoft.com/?id=291539

Using ADOX
ACC2000: How to Create a Table with Jet Data Types via ADOX
http://support.microsoft.com/?id=275252


Tom
__________________________________________


Thanks for the advice, but I was actualy looking for code to do the same.

Thx
__________________________________________


In the table design make the data type AutoNumber. Then select that line (highlight it) then
press the Key button in the toolbar.
__________________________________________


Hello all,

Could someone help me on the simplest function to create a table including a field which numbers
automatically and is the primary key. It would help me a lot.

Many thanks,
Ludovic
 
Tom, thanks alot for the advice, the second link you gave did help me out.

Ludovic
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Back
Top