J
John
I have an "import" button on a form that prompts the user to select a file to
import. The file must be an Excel file that contains the proper data. The
import works great, but now I am trying to "idiot proof" the code. How is
this best done? I need to check the type of file they selected (IE: type =
XLS) and some key information in the second record of the sheet. Here's the
code I am using to import:
DoCmd.TransferSpreadsheet acImport, acSpreadsheetTypeExcel5, "tblMonthly",
fn, True
Does the "...acSpreadsheetTypeExcel5..." ensure that it's an excel
spreadsheet?
import. The file must be an Excel file that contains the proper data. The
import works great, but now I am trying to "idiot proof" the code. How is
this best done? I need to check the type of file they selected (IE: type =
XLS) and some key information in the second record of the sheet. Here's the
code I am using to import:
DoCmd.TransferSpreadsheet acImport, acSpreadsheetTypeExcel5, "tblMonthly",
fn, True
Does the "...acSpreadsheetTypeExcel5..." ensure that it's an excel
spreadsheet?