| View previous topic :: View next topic |
| Author |
Message |
oki Newbie
Joined: 20 Sep 2005 Posts: 2
|
Posted: Sep 20th, 2005 02:21 AM Post subject: How To acces a .DBF database without DSN |
|
|
HI there..
There is anyone can help me.., i have some little problem with accesing database. i want to know how to accesing .dbf database without dsn procedure or with dsn but in sintax... |
|
| Back to top |
|
dougthomas Moderator
Joined: 27 Jul 2005 Posts: 271 Location: Essex, UK
|
Posted: Sep 28th, 2005 04:36 AM Post subject: |
|
|
Hi,
You could use something like:
| Code: |
Set db = New ADODB.Connection
strCon = "Provider=VFPOLEDB.1;Data Source=<your database.dbf>;Mode=ReadWrite|Share Deny None;Password='';Collating Sequence=MACHINE"
db.Open strCon
|
Regards
Doug _________________ If you can see the light at the end of the tunnel, it probably means there's a Train coming. |
|
| Back to top |
|
|