Level Extreme platform
Subscription
Corporate profile
Products & Services
Support
Legal
Français
MS Access Data Access
Message
From
19/04/2005 04:16:45
Jon Neale
Bond International Software
Wootton Bassett, United Kingdom
 
General information
Forum:
Visual FoxPro
Category:
Databases,Tables, Views, Indexing and SQL syntax
Environment versions
Visual FoxPro:
VFP 8 SP1
OS:
Windows Server 2003
Network:
Windows 2003 Server
Database:
Visual FoxPro
Miscellaneous
Thread ID:
01006074
Message ID:
01006082
Views:
23
Something like this.

lcconnect = [Provider=Microsoft.Jet.OLEDB.4.0;Jet OLEDB:Database Password=] + '619238'
lcconnect = lcconnect + [;User ID=Admin;Data Source=] + 'g:\products\ppwin\dev32\data\test2.mdb'
lcconnect = lcconnect + [;Mode=Share Deny None]

loconnection = createobject("adodb.connection")
loconnection.ConnectionString = lcconnect
loconnection.Open()

orecordset=createobject("ADODB.recordset")
orecordset.open("personal information",loconnection,1,4,512)

? orecordset.FIELDS.item(1).VALUE

Jon


>Hi All!
>
>I have a MS Access database that is password locked, but I have the password.
>My problem is I need to access one table in the the database to extract data but the program needs to run automatically.
>How can one "OPEN" the MS Acces database?
>
>Thanks
>
>Gary
Previous
Reply
Map
View

Click here to load this message in the networking platform