Plateforme Level Extreme
Abonnement
Profil corporatif
Produits & Services
Support
Légal
English
Importing from Access
Message
De
13/12/2001 02:44:00
 
 
À
13/12/2001 02:31:35
Information générale
Forum:
Visual FoxPro
Catégorie:
Base de données, Tables, Vues, Index et syntaxe SQL
Divers
Thread ID:
00593109
Message ID:
00593735
Vues:
23
>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
Précédent
Suivant
Répondre
Fil
Voir

Click here to load this message in the networking platform