in reply to Re^2: Access won´t allow ENUM, DEFAULT etc in CREATE
in thread Access won´t allow ENUM, DEFAULT etc in CREATE

There's your complete question. I did read it. Here's my understanding of the steps you took:

So, what I suggested was that you go back and figure out what was broken by taking 'baby steps' from the simple command that works, to the complicated command that doesn't work. Once you find out what breaks the command, you know what to fix.

Anyway, it seems you got the answer that ENUM is not a real SQL command, so you're on your way, and good luck with that.

Alex / talexb / Toronto

"Groklaw is the open-source mentality applied to legal research" ~ Linus Torvalds

Replies are listed 'Best First'.
Re^4: Access won´t allow ENUM, DEFAULT etc in CREATE
by Lytse Flap (Initiate) on Mar 15, 2005 at 08:43 UTC
    I took far more steps befor I got at this point and knew that the problem was with ENUM ;)

    I´ve solved this problem a bit ugly. I made in the query a variable wich will take the 'shape' of the database flavour.
    "CREATE TABLE ".$row[0]."(id $db_ind PRIMARY KEY,..
    So in MSAcces 97 it wil be:
    $db_ind ="COUNTER"
    And in MSAcces 2000+:
    $db_ind ="COUNTER NOT NULL"
    In MySQL:
    $db_ind ="AUTO_INCREMENT NOT NULL"

    Well, this is the basic thought. For now I have to find out how many databases support this and which one might this company purchase.