Hi, I have created a Policy database in access, and the user has requested that they have an import button to be able to import excel spreadsheets in the database. I was going to provide them with an import template, and then provide them with an import button with the following procedure attached to it:
Private Sub Import_Click()
' Import orders from Excel file Orders.xls
DoCmd.TransferSpreadsheet acImport, acSpreadsheetTypeExcel9, "tblCustomerOrders", "C:\orders.xls", True
End Sub
Is there anyway in the above where i can provide the user with a import search box like you get when you go File > Get external data > Import, so that they can search a network drive for the excel spreadsheet they require?
Also do you feel this is the best solution, or would you think that having a linked table to an excel spreadsheet would be better and just have the user add to that everytime they want to add a new entry?
Cheers
Private Sub Import_Click()
' Import orders from Excel file Orders.xls
DoCmd.TransferSpreadsheet acImport, acSpreadsheetTypeExcel9, "tblCustomerOrders", "C:\orders.xls", True
End Sub
Is there anyway in the above where i can provide the user with a import search box like you get when you go File > Get external data > Import, so that they can search a network drive for the excel spreadsheet they require?
Also do you feel this is the best solution, or would you think that having a linked table to an excel spreadsheet would be better and just have the user add to that everytime they want to add a new entry?
Cheers