Setting Defaults in Create table statement?

T

Thomas Malia

How do you do the equivalent to the following in Access 2000? No matter
what I try I get a syntax error:



CREATE TABLE SQLProcs
(
RecID AUTOINCREMENT ,
Name VarChar(50) NOT NULL ,
SysOrAppDB VarChar(50) NOT NULL DEFAULT 'A', <--- I can't figure out how
to set a DEFAULT using SQL in access!?!?!
RebootDSLIfRebuilt Bit NOT NULL DEFAULT 0,
RebuildIfExists Bit NOT NULL DEFAULT 0,
CreateString TEXT NULL
)
 
A

Allen Browne

You may have to execute it programmatically under ADO for that approach to
work.

This kind of thing:
CurrentProject.Connection.Execute "CREATE ...
 

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