HI,
I have Access DB and I am trying to create temp_table in Access DB using VBA, and every time it generates the following error:
"You do not have the necessary permissions to use the 'Temp_table' object. Have your system administrator or the person who created this object establish the appropriate permissions for you."
I have full permission to DB, I was trying to change security level in Access, but it still doesn't work, and I don't know what to do. Here is the code I use:
Dim ADOConnection As ADODB.Connection
Dim ADORecordset As ADODB.Recordset
Dim ADOCommand As ADODB.Command
Dim ADOXCatalog As ADOX.Catalog
Dim sSQL As String
'Get Connection
Call OpenADOQueryConnection(ADOConnection, ADORecordset)
'Create table
Set ADOCommand = New ADODB.Command
ADOCommand.ActiveConnection = ADOConnection
sSQL = "CREATE TABLE Temp_table ([Field1] TEXT(50))"
ADOCommand.CommandText = sSQL
ADOCommand.Execute , , adCmdText
I use the same code to create table in another DB I have, and it works, but not for this one. And I can't find the difference in DB security settings.
Thanks.
I have Access DB and I am trying to create temp_table in Access DB using VBA, and every time it generates the following error:
"You do not have the necessary permissions to use the 'Temp_table' object. Have your system administrator or the person who created this object establish the appropriate permissions for you."
I have full permission to DB, I was trying to change security level in Access, but it still doesn't work, and I don't know what to do. Here is the code I use:
Dim ADOConnection As ADODB.Connection
Dim ADORecordset As ADODB.Recordset
Dim ADOCommand As ADODB.Command
Dim ADOXCatalog As ADOX.Catalog
Dim sSQL As String
'Get Connection
Call OpenADOQueryConnection(ADOConnection, ADORecordset)
'Create table
Set ADOCommand = New ADODB.Command
ADOCommand.ActiveConnection = ADOConnection
sSQL = "CREATE TABLE Temp_table ([Field1] TEXT(50))"
ADOCommand.CommandText = sSQL
ADOCommand.Execute , , adCmdText
I use the same code to create table in another DB I have, and it works, but not for this one. And I can't find the difference in DB security settings.
Thanks.