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

  • Thread starter Thread starter RLK
  • Start date Start date
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?
 
How are you trying to use them? You'll have to show us code samples: we're
not prescient!
 
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.
 
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

Similar Threads

Sort SQL 30
Form with dropdown/type keyword 2
Query Def not recognized 2
SQL Server not recognizing aliased table 3
Insert Into a SQL table via Access 2007 8
Access Reference Subform's Control 0
I HATE ME.DIRTY 11
Compile error 4

Back
Top