Level Extreme platform
Subscription
Corporate profile
Products & Services
Support
Legal
Français
Importing from Access
Message
From
13/12/2001 02:44:00
 
 
To
13/12/2001 02:31:35
General information
Forum:
Visual FoxPro
Category:
Databases,Tables, Views, Indexing and SQL syntax
Miscellaneous
Thread ID:
00593109
Message ID:
00593735
Views:
22
>cool, Michel. You´re welcome.
>
>could you send me the fixed code?

Basically, it's something like this:
LOCAL lcMyFile, lnConnHandle, lnResult, lcSQLCommand, lnGetData, lcNewName
LOCAL ARRAY laWhatErr(1)

lcMyFile = GetFile()

lnConnHandle=SQLSTRINGCONNECT('DRIVER=MICROSOFT ACCESS DRIVER (*.MDB);DBQ=' + lcMyFile)
         
lnResult = SQLTABLES(lnConnHandle, 'TABLE')
CREATE DATABASE mynew
SELECT SQLResult
lcSQL = 'select * from '+ALLTRIM(SQLResult.table_name)
SQLEXEC(lnConnHandle,lcSQL,'myCursor')
SQLDISCONNECT(lnConnHandle)
Select myCursor
brow
Michel Fournier
Level Extreme Inc.
Designer, architect, owner of the Level Extreme Platform
Subscribe to the site at https://www.levelextreme.com/Home/DataEntry?Activator=55&NoStore=303
Subscription benefits https://www.levelextreme.com/Home/ViewPage?Activator=7&ID=52
Previous
Next
Reply
Map
View

Click here to load this message in the networking platform