Page 1 of 1

Access database connection

Posted: Sun Jun 03, 2007 1:11 am
by petlin
Hi folks,
Could some of you help out this newbie to PB? I'm trying to connect to an Access database using:

#db
OpenDatabase(#db, "C:\sampledb\Northwind.mdb",,)

This gets me an syntax error message.
The answer to this and any other helpful thoughts would be appreciated.
Thanx, Pete

Posted: Sun Jun 03, 2007 1:16 am
by Dare
Try:

Code: Select all

OpenDatabase(#db, "C:\sampledb\Northwind.mdb","","")


The empty strings are needed.

Posted: Sun Jun 03, 2007 2:27 am
by netmaestro