Freshman
Registered User.
- Local time
- Today, 19:55
- Joined
- May 21, 2010
- Messages
- 437
Hi all,
I'm using this code to link to a ODBC Pervasive db table:
The resulting table is however read-only.
However if I link to the table "manually" myself it results in a read/write table.
Am I missing something in the above procedure?
Thanks
Pierre
I'm using this code to link to a ODBC Pervasive db table:
Public Function RelinkODBC()
PastelServer = "PasServer"
On Error Resume Next
CurrentDb.TableDefs.DELETE "TranLeave"
Set tdfLinked = CurrentDb.CreateTableDef("TranLeave")
tdfLinked.Connect = "ODBC;DSN=" & PastelServer & ";DBQ=" & PastelServer
tdfLinked.SourceTableName = "TranLeave"
CurrentDb.TableDefs.Append tdfLinked
CurrentDb.TableDefs.Refresh
End Function
The resulting table is however read-only.
However if I link to the table "manually" myself it results in a read/write table.
Am I missing something in the above procedure?
Thanks
Pierre