I have a spreadsheet that I am doing a TransferSpreadsheet function from within Access
but sometimes the top line of the spreadsheet is a blank line which causes a Run-time error '2391' Field 'NoName' doesn't exist in destination table 'New Data_tbl'.
Is there a way within Access to check the spreadsheet for a blank line first and then remove it before performing the TransferSpreadsheet function?
Thanks
Code:
DoCmd.TransferSpreadsheet acImport, 8, "NewData_tbl", In_File, True
but sometimes the top line of the spreadsheet is a blank line which causes a Run-time error '2391' Field 'NoName' doesn't exist in destination table 'New Data_tbl'.
Is there a way within Access to check the spreadsheet for a blank line first and then remove it before performing the TransferSpreadsheet function?
Thanks