Defining an access table via VBA (SQL DDL)

A

Arlan

Using the SQL Data Definition Language, in VBA (Word XP) can I set the
newvalues to increment to create an autonumber field? If so How?

THANKS!
 
J

Jezebel

You set the field attribute to dbAutoIncrField. If you want the auto numbers
to be random rather than incremental, you append the field to the table,
then set its default value to "GenUniqueID()"
 
A

Arlan

Can you do this using the SQL Data Definition Language (DDL)? If so, could
you give me an example. If Not could you give a brief example not using DDL?

THANKS
 

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

Top