add/remove fields

  • Thread starter Thread starter John
  • Start date Start date
J

John

Hi!
I use MS Access with ASP. I have a db with one table (so far things are
simple).
However, I want to be able to add/remove fields from my table using code,
and not from the design view.
Does MS Access supports such thing?

Thnx in advance.
John
 
Hi,
You can use an SQL statement to drop a field.
Here's a snippet from help:
ALTER TABLE Employees DROP COLUMN Salary;

Look up Alter Table in Help.
 

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