Create Table with ADO (1 Viewer)

harrisw

Registered User.
Local time
Today, 15:39
Joined
Mar 27, 2001
Messages
131
Create a Table using VB

How can i create a table using nothing but code.

Thanx
 

crosmill

Registered User.
Local time
Today, 15:39
Joined
Sep 20, 2001
Messages
285
You'd need use SQL and then execute the SQL in VBA

docmd.RunSQL (CREATE TABLE TableName)
 

Oldsoftboss

AWF VIP
Local time
Tomorrow, 00:39
Joined
Oct 28, 2001
Messages
2,499
This example creates a table, a couple of fields and sets the autonumber and primary key field.
HTH
Dave
 

Attachments

  • creating a table.zip
    21.5 KB · Views: 179

harrisw

Registered User.
Local time
Today, 15:39
Joined
Mar 27, 2001
Messages
131
How do I do this using ADO and not DAO?

Many Thanks
 

Users who are viewing this thread

Top Bottom