The users import from a spreadsheet using a form I set up for them. I use the VBA code below:
Code:
Public Function ImportText()
On Error GoTo Err_ImportText
'Delete records from table
DoCmd.RunSQL ("delete from tblSP_SHIPMENT_temp")
DoCmd.RunSQL ("delete from tblDTF_SHIPMENT_temp")
'Import Text files into corresponding tables
DoCmd.TransferSpreadsheet acImport, acSpreadsheetTypeExcel8, _
"tblSP_SHIPMENT_temp", "S:\NSC Public\FINANCE\ACFAST\UPLOADS\INVOICEREPORT\SMALLPACKAGEIMPORT.xls", True
'DoCmd.TransferSpreadsheet acImport, acSpreadsheetTypeExcel8, _
DoCmd.TransferSpreadsheet acImport, acSpreadsheetTypeExcel8, _
"tblDTF_SHIPMENT_temp", "S:\NSC Public\FINANCE\ACFAST\UPLOADS\INVOICEREPORT\DUTIESANDTAXESIMPORT.xls", True
DoCmd.OpenQuery "qry_DailyInvoiceReportAppend"
DoCmd.OpenQuery "qry_DailyInvoiceReportAppend_DTF"
MsgBox "Import Completed"
Exit_ImportText:
Exit Function
Err_ImportText:
MsgBox Err.Description
Resume Exit_ImportText
End Function
I'll try your suggestion.