Level Extreme platform
Subscription
Corporate profile
Products & Services
Support
Legal
Français
Import Data of MSAccess table
Message
From
24/09/2001 16:03:00
 
 
To
24/09/2001 15:15:55
General information
Forum:
Visual FoxPro
Category:
Databases,Tables, Views, Indexing and SQL syntax
Miscellaneous
Thread ID:
00560144
Message ID:
00560185
Views:
25
Judy,
You can use SQL passthrough to import Access data. Try something like this:
*-- build connection string
lcConnectionStr = "DRIVER={Microsoft Access Driver (*.mdb)};" +;
                  "Dbq=YourDatabase.mdb;" +;
                  "Uid=Admin;" +;
                  "Pwd=;"

*-- connect to MS Access
lnAccess = SQLSTRINGCONNECT(lcConnectionStr)

*-- import Access table into an SPT cursor
SQLEXEC(lnAccess, "SELECT * FROM YourTable") 
HTH
>Is there a way to import data into a Fox table directly from an Access database table, or does it have to be exported into some format from Access first? It doesn't seem to be a choice in the data types for importing.
>
>Judy Scofield
Daniel
Previous
Reply
Map
View

Click here to load this message in the networking platform