Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations gkittelson on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

Accessing Btrieve using ODBCDirect

Status
Not open for further replies.

jbrowne

Programmer
Feb 1, 2000
182
IE
Hi,
I am trying to access a Btrieve database using ODBCDirect. I have used the folllowing code to do this;

Set wrkODBC = CreateWorkspace("ODBCWorkspace", "", "", dbUseODBC)

Set sysdb = wrkODBC.OpenConnection("Connect1", dbDriverNoPrompt,False,"ODBC;DSN=ODSYSTEM;")

Set sImmsg = sysdb.OpenRecordset ("Immsg", dbOpenDynamic)

Immsg is the table that I want to open for read/write access.
My problem is that no matter what I do I can only open it as read only. I am using a Pervasive ODBC Engine Interface Driver.
Can anyone tell me what I’m doing wrong
Thanks in advance

John B
[sig][/sig]
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top