December 17th, 1999, 08:30 AM
I have a problem with writing to dbf file. I have written app to inport some data from one application to an other application. I have written it, test it and debugged on my comp and no problem. Then I have used the code on an other computer and here is what I have gotten a an error on the target.addnew line:
Error 2037. Object or database is read only.
Here is how I open the database:
Set wrkJet = CreateWorkspace("", "admin", "", dbUseJet)
Set dbSourceTarget = wrkJet.OpenDatabase(targetPath, True, False, "dBASE III")
Set target = dbSourceTarget.OpenRecordset("EVENTS.dbf", dbOpenDynaset, 0, dbOptimistic)
Error on : target.addnew
,but as I said it works on mi comp.
If anyone has any suggestions then please send a reply.
Thanks….
Error 2037. Object or database is read only.
Here is how I open the database:
Set wrkJet = CreateWorkspace("", "admin", "", dbUseJet)
Set dbSourceTarget = wrkJet.OpenDatabase(targetPath, True, False, "dBASE III")
Set target = dbSourceTarget.OpenRecordset("EVENTS.dbf", dbOpenDynaset, 0, dbOptimistic)
Error on : target.addnew
,but as I said it works on mi comp.
If anyone has any suggestions then please send a reply.
Thanks….