Hi, I have a database that needs to update with current data from an excel file and also may be opened by multiple people at the same time.
Initially I had the database linked to an excel file but it wouldn't work because excel has an issue with having 2 people open the file at the same time.
Then I tried to have the database import updated data from excel on every open using DoCmd.TransferSpreadsheet but now when another user has the file open I get the error "You tried to lock table while opening it, but the table cannot be locked because it is currently in use".
Does anyone have an idea of how I can accomplish this? Thanks in advance.
Edit: I found out the reason I was getting the "You tried to lock table while opening it" error was because I was having the table be deleted before importing from excel because if I didn't, it would create duplicates for records that already existed. So a follow up question, does anyone know how to use DoCmd.TransferSpreadsheet without creating duplicates? Thanks.