Hi Laura,
You can add option "verbose=1" to the table declaration to get verbose error message:
table T "ODBC" "test.xls" 'verbose=1': ...
Most likely the problem is in read-only attribute which seems to be the default in some versions of MS ODBC driver for Excel. This is indicated by the following verbose error message:
errmsg = "[Microsoft][ODBC Excel Driver] Cannot modify the design of table 'T'.
It is in a read-only database."
You can set the read-only attribute to false in a data source. Either create one with ODBC Administrator or manually create a file with extension .dsn, say test.dsn, and the following content:
[ODBC]
DRIVER=Microsoft Excel Driver (*.xls)
ReadOnly=0
DBQ=test.xls
You might need to change "Microsoft Excel Driver (*.xls)" to the name of the Excel ODBC driver installed on your machine and test.xls to the path of your Excel file.
Then you can use this data source in the table declaration instead of the path to .xls file:
table T "ODBC" "test.dsn": ...
HTH,
Victor