DPM
2010-04-22 07:44:44 UTC
Hi,
I use the following code to read data from MS Excel2007, using VFP9 SP1
lcConnectionToOpenedXls = "Driver={Microsoft Excel Driver (*.xls)};
DriverId=790; Dbq="+lcExcelFileName+";
DefaultDir="+JUSTPATH(lcExcelFileName)
lnHandleToOpenedXls = SQLSTRINGCONNECT(lcConnectionToOpenedXls)
SQLEXEC(lnHandleToOpenedXls, "SELECT * FROM ["+lcTableName+"]",
"fTmpExcelData")
SQLDISCONNECT(lnHandleToOpenedXls)
SELECT * FROM fTmpExcelData INTO TABLE (lcExcelDataTable)
USE IN fTmpExcelData
USE (lcExcelDataTable) EXCLUSIVE
BROW
When the created table is browsed and navigated through records noticed that
the following error prompts when a memo field is accessed.
"Memo file <lcExcelDataTable> missing or invalid."
Could someone please avice what may be the cause and a solution.
I use the following code to read data from MS Excel2007, using VFP9 SP1
lcConnectionToOpenedXls = "Driver={Microsoft Excel Driver (*.xls)};
DriverId=790; Dbq="+lcExcelFileName+";
DefaultDir="+JUSTPATH(lcExcelFileName)
lnHandleToOpenedXls = SQLSTRINGCONNECT(lcConnectionToOpenedXls)
SQLEXEC(lnHandleToOpenedXls, "SELECT * FROM ["+lcTableName+"]",
"fTmpExcelData")
SQLDISCONNECT(lnHandleToOpenedXls)
SELECT * FROM fTmpExcelData INTO TABLE (lcExcelDataTable)
USE IN fTmpExcelData
USE (lcExcelDataTable) EXCLUSIVE
BROW
When the created table is browsed and navigated through records noticed that
the following error prompts when a memo field is accessed.
"Memo file <lcExcelDataTable> missing or invalid."
Could someone please avice what may be the cause and a solution.