Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations gkittelson on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

Help with DDL QUERY

Status
Not open for further replies.

calihiker

Technical User
Jun 13, 2003
96
US
I'm not too familiar with Data Definition Queries, but I thought it might be possible to make a query (In ACCESS)that deletes certain rows in a table. Any help would be very appreciated.

Here's what I am doing now, but I am getting a syntax message...

ALTER TABLE "2000 Gifts Drop1"
DROP COLUMN "Year Code";


Thanks,
Andre
 
This is very confusing. You said you want to delete certain rows, yet you're using a statement to drop a column.

If I assume you meant you want to delete a column, instead of "certain rows", then your post makes sense. Your syntax error is coming from the use of quotes around the table and column names. You need to use [square brackets] instead. The bracket syntax is used with names of things in the database; quotes are used to surround data values (in particular, SQL text literals).

Note that the preceding is a Jet convention. Other relational database management systems use different syntax.

Rick Sprague
Want the best answers? See faq181-2886
To write a program from scratch, first create the universe. - Paraphrased from Albert Einstein
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top