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 SkipVought on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

.DBF permission

Status
Not open for further replies.

jlschulte

Programmer
Nov 1, 2001
11
0
0
US
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
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top