"Operation is not supported for this type of object"
thx for your reply
with this hint I wrote following code as a test for functionality:
Dim conDatabase As ADODB.Connection
Dim SQL As String
On Error GoTo Error_Handler
Set conDatabase = Application.CurrentDb.Connection
SQL = "CREATE TABLE tblCustomers (" & _
"CustomerID INTEGER CONSTRAINT PK_tblCustomers PRIMARY KEY, " & _
"[Last Name] TEXT(50) NOT NULL, " & _
"[First Name] TEXT(50) NOT NULL, " & _
"Phone TEXT(10), " & _
"Email TEXT(50), " & _
"Address TEXT(40) DEFAULT Unknown)"
conDatabase.Execute SQL
MsgBox "The Customers table has been created.", vbInformation
conDatabase.Close
Set conDatabase = Nothing
Whatever I try I always get the message:
"Operation is not supported for this type of object"