Hi,
I am trying to link oracle tables through VBA. Using the following code:
Dim db As DATABASE
Dim tdf As TableDef
Dim strConnect As String
Dim strTable As String
strTable = "TableName"
Set db = CurrentDb()
Set tdf = db.CreateTableD ef(strTable)
tdf.SourceTable Name = strTable
strConnect = "ODBC;DSN=<dsnn ame>;SERVER=<se rver>;PWD=<pwd> ;UID=<uid>"
tdf.Connect = strConnect
db.TableDefs.Ap pend tdf
db.Close
End Sub
I get the following error : "There are several tables with that name. Please specify owner in the format 'owner.table'. (Error 3298)".
I have tried specifying <uid>.tablename .....but it doesnt work....
Any suggestions..
I am trying to link oracle tables through VBA. Using the following code:
Dim db As DATABASE
Dim tdf As TableDef
Dim strConnect As String
Dim strTable As String
strTable = "TableName"
Set db = CurrentDb()
Set tdf = db.CreateTableD ef(strTable)
tdf.SourceTable Name = strTable
strConnect = "ODBC;DSN=<dsnn ame>;SERVER=<se rver>;PWD=<pwd> ;UID=<uid>"
tdf.Connect = strConnect
db.TableDefs.Ap pend tdf
db.Close
End Sub
I get the following error : "There are several tables with that name. Please specify owner in the format 'owner.table'. (Error 3298)".
I have tried specifying <uid>.tablename .....but it doesnt work....
Any suggestions..
Comment