doctorswamp
Technical User
Hi all
I'm importing order records from Excel into an Access table using this procedure.
***************
Private Sub Import_Click()
' Import orders from Excel file Orders.xls
DoCmd.TransferSpreadsheet acImport, acSpreadsheetTypeExcel9, "tblCustomerOrders", "C:\orders.xls", True
End Sub
***************
Can I prevent the same set of records in Orders.xls from being imported a second time if I run the procedure again?
I'd like the Access database to build up a record of all orders in tblCustomerOrders for future reference, but only once. The subsequent steps in Access add a flag to orders that have been processed so they are queried out to prevent repeat processing.
Thanks
I'm importing order records from Excel into an Access table using this procedure.
***************
Private Sub Import_Click()
' Import orders from Excel file Orders.xls
DoCmd.TransferSpreadsheet acImport, acSpreadsheetTypeExcel9, "tblCustomerOrders", "C:\orders.xls", True
End Sub
***************
Can I prevent the same set of records in Orders.xls from being imported a second time if I run the procedure again?
I'd like the Access database to build up a record of all orders in tblCustomerOrders for future reference, but only once. The subsequent steps in Access add a flag to orders that have been processed so they are queried out to prevent repeat processing.
Thanks