This is problematic. You might have the users click a button to pass new data. You might automate it on open, since users are more likely to wait while the database is opening than when it is closing or some other time.
I would create a local log table (hidden) to log the data that was passed out, and check the table to see what new files need to be passed.
You can do this by either creating a DateCreated and DateModified field in all of the tables that will pass data, and then check the date and time of the last update, and then send records where either the date created or date modified is later, Or create a Yes/No field, and then check for yes if the data is new or updated, and then UNCHECK the field when the record is sent.
I would be inclined to do all this on the On Open event of the main form that opens when the users open the application. BUT it depends on how much data is going to be moved around.
Also, with error checking, you will want to have some method to confirm that the data that was sent was committed on the main database. And perhaps a check to make sure no errors were thrown during transmission, etc. Then perhaps some back checking from the main database...
How much data are we talking about on a daily basis from the busiest site?
Do you need more help on this?
mmcdonal
|