Applies to: reported in 2012 with the Microsoft Excel ODBC driver (DriverId=790) and Office 2000 and 97 files; the Clarion version is not named.
Problem as reported
A poster could create an .xls file with the ODBC driver and read it in Excel. He could not read an Excel-made file that looked the same, could not add a record to the driver-made file (only change existing ones), and could not find where Excel stores the record count the driver reports. His owner was 'Driver={{Microsoft Excel Driver (*.xls)};DriverId=790; READONLY=FALSE; DBQ=' & path & filename & ';' with the FILE declared DRIVER('ODBC'),CREATE and the sheet name (Ark1) in NAME().
What the thread found
- One poster gave Office 2010 and Office 2007 strings (
Driver=Microsoft Excel Driver (*.xls);Dbq=...;DriverID=790;) and said to try swapping Dbq and DriverID; the poster has older Office and was told to use the 2007 form. - Another poster doubted the string was the cause, since reading and writing already worked. From memory, ODBC needs the data in named ranges; compare Insert, Name, Define in the driver-made file and the Excel-made one.
- A third pointed to Microsoft KB 178717 on restrictions of the Excel ODBC driver.
- A fourth said his app does this extensively: name the sheet as the table, written as the sheet name followed by
$(for example'Bulk Items$'), and put apostrophes or backticks around column names containing spaces or?, such asNAME('Comet Item Id'). His strings usedReadOnly=0. - Another poster suggested reading the data with the LibXL library instead. A reader in 2017 asked for a screenshot of the dictionary setup; none was posted.
Caveats
- The original poster did not report which suggestion, if any, worked.
- The named-range remark was from memory and was not verified in the thread.
Today (2026)
Not reproduced. This entry records a 2012 report; a reader on a current build who reads Excel files through the ODBC driver is asked to confirm or close it.
Sources: Hans K. (Dec 2012, the question), JP G., Jon W., Graham D., Leonid C., Carl S. (Dec 2012), Ed (May 2017) in softvelocity.clarion.databasedrivers.