I am using the TransferSpreadsheet command in a macro. I have 25 fields in my EXCEL spreadsheet and 25 fields in my ACCESS table with fieldnames. The spreadsheet is to be transferred to the table. But the error message states that there is a field that does not exists in the table called 'F26'.
NO, it does not exists because I don't have 26 fields.
Please tell me why I keep getting this message:
"...Field 'F26' doesn't exists in destination table."
Here's my statement:
Import, 8, "ODATA", "H:\LYDIA\OSHA\TEST_OSHA\OSHA_REPORTS.xls", Yes
I want to specify a range name but not sure how to do that without getting an error. There is a named range (LASTUSED) in my spreadsheet that contains the used range in the spreadsheet but I don't know how to use it in my ACCESS statement. I tried ODATA!LASTUSED for the
NO, it does not exists because I don't have 26 fields.
Please tell me why I keep getting this message:
"...Field 'F26' doesn't exists in destination table."
Here's my statement:
Import, 8, "ODATA", "H:\LYDIA\OSHA\TEST_OSHA\OSHA_REPORTS.xls", Yes
I want to specify a range name but not sure how to do that without getting an error. There is a named range (LASTUSED) in my spreadsheet that contains the used range in the spreadsheet but I don't know how to use it in my ACCESS statement. I tried ODATA!LASTUSED for the
#VALUE!