-
August 1st, 2002, 07:57 AM
#1
Creating Tables with ADO
Hello again,
I am here with anopther easy(!) question for most. What am I going to select from references to creat Access Table with ADO 2.7?
Thanks a mil...
Leo
-
August 1st, 2002, 08:03 AM
#2
Dim conn as new adodb.connection
conn.execute "Create Table tt ( [Fileds1] number,[Field2] text(25))"
-
August 1st, 2002, 08:05 AM
#3
Should also work with 2.7 ( mine with ADO 2.5)
Code:
Private Sub Command1_Click()
Dim db As ADODB.Connection
Set db = New ADODB.Connection
db.ConnectionString = Adodc1.ConnectionString
db.Open
db.Execute ("CREATE TABLE TableToto(NameOfMyField1 TEXT, NameOfMyField2 TEXT)")
db.Close
End Sub
JeffB - hope it helps
-
August 1st, 2002, 08:06 AM
#4
Thanks
Posting Permissions
- You may not post new threads
- You may not post replies
- You may not post attachments
- You may not edit your posts
-
Forum Rules
|
Click Here to Expand Forum to Full Width
|