Applies to: reported by a developer moving a CPD 2.1 application to Clarion 10 with the ODBC driver and an Excel file. Other versions are not named.
Problem as reported
The file opened from the dictionary, but loading the browse failed. First message: File [Sheet1$] could not be opened. Error: Syntax error in FROM clause. (37000). Later message: Record Retrieval Error. Error: (Syntax error in FROM clause. (37000)) attempting to access a record from the Sheet1S file. The poster wanted the sheet set up in the dictionary, not in code, and asked how the sheet must be referenced.
What the thread found
- Carl S. read the error as coming from the Excel ODBC driver, answering the SQL the Clarion ODBC driver generates. The FROM clause can be seen in a driver trace, with the Trace program in Clarion or the ODBC trace in the Windows Data Sources applet.
- His guesses at the cause: the connect string, the filter string, or something not being bound. He noted that sheets are treated as separate tables, and said he would look for an old example.
- He had not used PROP:SQL on Excel (Jet) files and used the Clarion file commands.
- Olivier C. pointed to sample projects posted earlier in the C10 newsgroup. The poster had read them and still wanted the dictionary route.
- No answer was posted for how to write the sheet name in the dictionary.
Caveats
- The Carl S. suggestions were guesses and were not tested in the thread.
- The poster's wish for documentation of each file type in the dictionary was not answered.
Today (2026)
Not reproduced. This entry records a 2017 report. A reader on a current build who has an Excel sheet working from the dictionary is asked to post the External Name and owner string so the entry can close.
Sources: Ed (May 2017, the question), Carl S., Olivier C. (May 2017) in softvelocity.clarion.databasedrivers.