Been using something like this to import certain data elements from a single col excel extract file, all was well as the data I was pulling from the query and parsing was either numeric or under 100 chars. Recently, it was requested to include some comments. The comments are being truncated.
If the above is not able to handle, what are the alternatives?
I looked at I tried it out and it seems to be able to pull in the entire comment. Here is the issue; if I use this method, I won't know the row number up front. I would need a mechanism to search the excel sheet for the cell containing the value because the cell row containing the comment will vary from sheet to sheet. Because the file contains a comment field for more than one question, I need to do a two pass find, first to find the phrase "Please comment on X..." then find the actual cell which starts with the word "Responses".
Code:
stsql = "SELECT F1 " & _
"FROM [Excel 12.0;HDR=NO;IMEX=1;Database=" & PathFile & "].[" & sheetname & "$A1:A10000] AS T1 " & _
"WHERE F1 Is Not Null"
If the above is not able to handle, what are the alternatives?
I looked at I tried it out and it seems to be able to pull in the entire comment. Here is the issue; if I use this method, I won't know the row number up front. I would need a mechanism to search the excel sheet for the cell containing the value because the cell row containing the comment will vary from sheet to sheet. Because the file contains a comment field for more than one question, I need to do a two pass find, first to find the phrase "Please comment on X..." then find the actual cell which starts with the word "Responses".