I have worked on a program that queries a .dbf. I have the program working well on my workstation, but when I try using it on other machines, I get an error that the user does not have permission to access the .dbf or the .dbf is not shareable. The .dbf is marked read only, but that is the only restriction accordingto the network.
This is the related code:
cnn1.Open ("Provider=MSDASQL.1;Driver={Microsoft dBase Driver (*.dbf)};FIL=dBase 5.0;FILEDSN=C:\Program Files\Common Files\ODBC\Data Sources\dBASE Files (not sharable).dsn;"
rs1.Open strQuery, cnn1, adOpenKeyset, adLockOptimistic, adCmdText
The error occurs on the rs1.Open line.
Any ideas?
Thanks
Jeff
This is the related code:
cnn1.Open ("Provider=MSDASQL.1;Driver={Microsoft dBase Driver (*.dbf)};FIL=dBase 5.0;FILEDSN=C:\Program Files\Common Files\ODBC\Data Sources\dBASE Files (not sharable).dsn;"
rs1.Open strQuery, cnn1, adOpenKeyset, adLockOptimistic, adCmdText
The error occurs on the rs1.Open line.
Any ideas?
Thanks
Jeff