I am trying to import Excel97 and Excel 2000 files into access but somehow it keeps going to the Error routine, when the DoCmd.TransferSpreadsheet is encounter. Below is the the method I am using.
MCOWAdata is the name of the Access table
Me.namedfile is the variable used to capture the file name after user uses browses through the directory. The Excel file does not have any headings.
DoCmd.TransferSpreadsheet acImport, acSpreadsheetTypeExcel8, "MCOWAdata", Me.namedfile, False
Is there anything else I should add? Am I using the right format for the DoCmd TransferSpreadsheet?
Thanks in advance,
JL[\b]
MCOWAdata is the name of the Access table
Me.namedfile is the variable used to capture the file name after user uses browses through the directory. The Excel file does not have any headings.
DoCmd.TransferSpreadsheet acImport, acSpreadsheetTypeExcel8, "MCOWAdata", Me.namedfile, False
Is there anything else I should add? Am I using the right format for the DoCmd TransferSpreadsheet?
Thanks in advance,
JL[\b]