J
John Favaro
I've decided to try to learn how to create a database in Access 2003 in
SQL. So the first step is to create a few tables. I have an example for
creating a table, so that works fine.
Before creating the table, however, I want to "delete the table if it
already exists." The usual strategy, so you can just run the file to
recreate the database after modifying things.
I think you're supposed to use the DROP statement, and I've seen it used
like
DROP MyTable IF EXISTS
in SQL.
But Access doesn't like my DROP statement no matter how I vary it. Keeps
talking about syntax errors in the drop statement. I can't find whatever
error it is worried about.
Sorry to bother with such a basic question, but ... where can I get the
straight info on this?
Thanks,
John
SQL. So the first step is to create a few tables. I have an example for
creating a table, so that works fine.
Before creating the table, however, I want to "delete the table if it
already exists." The usual strategy, so you can just run the file to
recreate the database after modifying things.
I think you're supposed to use the DROP statement, and I've seen it used
like
DROP MyTable IF EXISTS
in SQL.
But Access doesn't like my DROP statement no matter how I vary it. Keeps
talking about syntax errors in the drop statement. I can't find whatever
error it is worried about.
Sorry to bother with such a basic question, but ... where can I get the
straight info on this?
Thanks,
John