Level Extreme platform
Subscription
Corporate profile
Products & Services
Support
Legal
Français
Open a file via ODBC
Message
From
26/07/1999 15:01:02
Nancy Zamora
Kellstrom Industries, Inc.
Sunrise, Florida, United States
 
 
To
All
General information
Forum:
Visual FoxPro
Category:
Client/server
Title:
Open a file via ODBC
Miscellaneous
Thread ID:
00246251
Message ID:
00246251
Views:
55
I a trying to open a MSAccess file (.mdb) to be displayed in a grid via Visual Foxpro. The following is what I have attempted to run but
VFP is looking for a .dbf instead. Could someone guide me to the correct way? Thanks!!!

My form contains the "MS ADO Datacontrol Version 6.0" control with properties of:
Data Source Name = MSACESS (previously created via ODBC),
Command type =TABLE,
RecordSource = test.mdb (MS ACCESS file)

This is the code In the load event:
OPEN DATABASE testdata
CREATE CONNECTION MYCONN DATASOURCE "MSACCESS" USERID "admin"
SELECT * FROM d:\test.mdb
Next
Reply
Map
View

Click here to load this message in the networking platform