Level Extreme platform
Subscription
Corporate profile
Products & Services
Support
Legal
Français
Open Access Database with password in VFP
Message
From
15/11/2001 08:50:16
Cetin Basoz
Engineerica Inc.
Izmir, Turkey
 
General information
Forum:
Visual FoxPro
Category:
Coding, syntax & commands
Miscellaneous
Thread ID:
00581981
Message ID:
00581995
Views:
13
>Does anybody have experience of opening a passworded Access database in VFP to allow my application to import the data? Any feedback much appreciated.

Check faq#8039

This is extracted from there :
lcMDBDir = < DirectoryOfMDB >
lcMDBName = < FileNameOfMDB >
lnConnHandle = SQLSTRINGCONNECT('DSN=MS Access Database;DBQ='+;
  lcMDBDir+'\'+lcMDBName+';DefaultDir='+;
  lcMDBDir+';FIL=MS Access;UID=< userid >;PWD=< password >;')
  
? lnConnHandle
  lcSQL = 'select * from < TableName >'
  SQLEXEC(lnConnHandle,lcSQL,'myCursor')
	SQLDISCONNECT(lnConnHandle)
  Select myCursor
  brow
Cetin
Çetin Basöz

The way to Go
Flutter - For mobile, web and desktop.
World's most advanced open source relational database.
.Net for foxheads - Blog (main)
FoxSharp - Blog (mirror)
Welcome to FoxyClasses

LinqPad - C#,VB,F#,SQL,eSQL ... scratchpad
Previous
Reply
Map
View

Click here to load this message in the networking platform