Hi Folks,
I am getting "Error writing DB record: Error -2147217900: [Microsoft][ODBC Excel Driver] <tablename$> is NOT a valid name".
Really finding it difficult to solve cause the same query runs when i put the code in debug mode or run it for the second or third time. I guess there is something wrong with the Connection. But i have tried everything possible but failed to resolve this issue.
The error say that the query is wrong but the same query runs when i try it for the second or third time in debug mode. Also the query to run in excel the table name has to be concatenated with a '$' sign. Just to give a background of what i m trying to achieve here is:
I am querying few tables to fetch some data based on some criteria and then i am writing these to a flat file.And then later on these flat files are FTP'ed to a mainframe server and then loaded on to ADABAS (Mainframe DB).
Code which is throwing error:
Now the above code snippet is a part of the big chunk of code where the "strRecordType" = ELRL and the workbook already have a sheet named "AGE_ELRL".
Any help would be appreciated.
Regards
Basu
Bookmarks