Can I add a field to a table using BASIC?

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

Guest

I'm wondering if there's some way to add a field to a table using BASIC,
rather than the normal way of opening the table in design view by hand, etc.
 
waynemb said:
I'm wondering if there's some way to add a field to a table using BASIC,
rather than the normal way of opening the table in design view by hand, etc.


For sure you can use DAO's CreateField method.

Alternatively, you can use the Execute method to run an
ALTER TABLE query.

Check Help to see which way is best in your situation, and
come on back if you run into a problem.
 

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