I have a data entry form that is bound to a data review table called TempHomeSites. After the users enter all the data, the database manager will need to review entries before appending/updating to the master database. I want to accomplish the following:
If the user clicks a specific button (Renewal Request), a form pops up (modal dialog form?) asking for the SiteID number. When the "OK" is button is selected, a query will be run that looks to see if that SiteID exists in the MasterHomeSites table. If it does, I want the data entry form populated with the corresponding data from the MasterHomeSites table so that the user doesn't have to re-enter all the data again. They will only have to manually change the data that has been modified (if any exists).
Once all the data has been entered and saved to the TempHomeSites table, the database manager will execute an update/append query on another form (UpdateOrAppendForm) that will update the fields from the TempHomeSites into the MasterHomeSites table where there is a match on SiteID. For records where there is not match, I want to append these records to the MasterHomeSites table.
How would some of you Access VBA programming gurus approach this? I am pretty good at dechiphering code from other databases and modifying to fit my needs, but I searched and did not see anything addressing this type of scenario. I am super new to Access and at a loss as to where to start. If anyone knows a sample database I can download that deals with some of these requirements, please point me to them.
Thank you.