Plateforme Level Extreme
Abonnement
Profil corporatif
Produits & Services
Support
Légal
English
Query Excel
Message
Information générale
Forum:
Visual FoxPro
Catégorie:
Codage, syntaxe et commandes
Titre:
Versions des environnements
Visual FoxPro:
VFP 9 SP2
OS:
Vista
Network:
Windows 2008 Server
Database:
MS SQL Server
Divers
Thread ID:
01361454
Message ID:
01361491
Vues:
12
Thanks. I have looked at the old thread and I am typing everything correct. I can open the file with Excel 2007 but still get the error "Sheet1$" is an invalid object.

lcConn = "Driver= {Microsoft Excel Driver (*.xls, *.xlsx, *.xlsm, *.xlsb)}; DBQ=C:\_v7data\ImportTest\export\excel2007export.xlsx"

lnHandle = SQLSTRINGCONNECT( lcConn )
lcCmd = "Select * FROM [Sheet1$] "

lnSuccess = SQLEXEC( lnHandle, lcCmd, "mycursor" )
Précédent
Suivant
Répondre
Fil
Voir

Click here to load this message in the networking platform