Access database connection

Just starting out? Need help? Post your questions and find answers here.
petlin
User
User
Posts: 10
Joined: Thu Apr 19, 2007 2:16 am

Access database connection

Post 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
Dare
Addict
Addict
Posts: 1965
Joined: Mon May 29, 2006 1:01 am
Location: Outback

Post by Dare »

Try:

Code: Select all

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


The empty strings are needed.
Dare2 cut down to size
User avatar
netmaestro
PureBasic Bullfrog
PureBasic Bullfrog
Posts: 8451
Joined: Wed Jul 06, 2005 5:42 am
Location: Fort Nelson, BC, Canada

Post by netmaestro »

BERESHEIT
Post Reply