I’ve got a somewhat unique problem due to our infrastructure. I have two offline tablet’s which are performing a survey and entering the information in an Access database. These tablets have their own copy of the database front end AND back end.
I need to, at the end of every day, update the master copy of the back-end (on an office computer) with the values in each of the two tablet databases. This master DB is then uploaded to each of the tablets, replacing their incomplete versions, and off they go the next day.
I’ve never done this sort of merging before and don’t really know where to start. Basically, I need a query which will:
- Delete the current values in the master DB
- Add the values from tablet1, merged with the values of tablet2 into the master DB
I can delete the current values in the master DB because the tablets will contain the values from the days before as well (as they are sometimes needed for reference etc). Basically, the tablets will always contain the entire database + today's survey. It’s just that + today's survey is different for each tablet.
Is it possible to do? How can I keep the ID fields, as there are relationships in place using KeyIDs?
I need MERGE, but havn’t found any documentation on if it works in MS Access… MS seems to play with the standards however they please. Or maybe MSA2010 just hasn’t updated to support Merge?
I found a workaround that works for me as a bandaid solution. I empty the existing Master table first. I then use:
and name that query “myQuery”. Then
However for anyone having the same question, HansUp’s solution of integrating with SharePoint seems like a good idea (see question’s comments). It does not require end-user intervention, whereas I need to manually call these queries when the tablets return to the office.