How do I delete table column only using a query?

  • Thread starter Thread starter Guest
  • Start date Start date
G

Guest

How do I delete a table column by using a query, not in table view(design or
othewise). I want to put this query in a macro.
Thanks
 
RunSql on a query statement like this:

ALTER TABLE [MyTable] DROP COLUMN [MyField];

--
Allen Browne - Microsoft MVP. Perth, Western Australia.

Reply to group, rather than allenbrowne at mvps dot org.

message
news:[email protected]...
 
Not sure you can. Why would you want a query to modify your table design -
especially to delete a column?
 
You can not.

You can delete the data in a field by using an update query.
 

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

Back
Top