Make table SQL code?

  • Thread starter Thread starter SirPoonga
  • Start date Start date
S

SirPoonga

What is the code to create a table using SQL in Access?

In VBA I want to make a table and define field properties.
 
You can use DDL - Data Definition Language or the Create method for Tabledef
object.

See the help file example in the Tabledef object help page thingy.

mk:@MSITStore:C:\Program%20Files\Common%20Files\Microsoft%20Shared\OFFICE11\1033\dao360.chm::/damthcreatetabledefx.htm
 
What is the code to create a table using SQL in Access?

In VBA I want to make a table and define field properties.


CREATE TABLE MyTable (myField1 Text)

more in the help (Microsoft Jet SQL Reference)
 

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