Key SQL Keywords not recognized???????

R

RLK

I can't get Access 2000 to recognize keywords such as
DEFAULT and IDENTITY. Get syntax error when I use them.
Even code copy/pasted from the Knowledge base does not
work. Any ideas on what I'm missing anyone?
 
D

Douglas J. Steele

How are you trying to use them? You'll have to show us code samples: we're
not prescient!
 
G

Guest

Even the most simple of statements will not work. If I
enter the following in the MS Access 2000 SQL Query View
Window:

Create Table TestTable (Field1 Int Default 0)

This should created a test table with one field and set
it's default value to 0. Instead, I get a "Syntax error
in CREATE TABLE statement" error and the
keyword 'DEFAULT' get's highlighted. I can copy and
paste the same statement into the SQL Server Query
Analyzer and it will work with no problem. The same
thing happens when I try to use the IDENTITY keyword or
define a field as type DECIMAL. It's almost as if the
version of Access 2000 that I have does not support it.
 
V

Van T. Dinh

The DEFAULT statement can only be executed through the JET OLE DB provide
and ADO, NOT through DAO or the Access interface.
 

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