creating a table

  • Thread starter Thread starter david white
  • Start date Start date
D

david white

dynamically - on-the-fly I want to push a button that
creates a table with 2 fields (field1 field2). How can I
do it? Thanks.
 
Put code similar to this in the Click event of your button:

DoCmd.RunSQL "CREATE TABLE MyTable (Field1 Number, Field2 Text)"
 

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