In my A2K FE/BE system I am having a timing problem.
I display some records on a subform in datasheet view with only one field available for change, that being a checkbox. The user clicks the records that should be processed. After all the required records are checked a commandbutton is clicked to “Process” the selected records.
The problem is that there is a (to me) undetermined time lag between the records being checked on the sub form and the underlying table in the BE being updated. For example, if I click one record’s checkbox and then click the “Process” button, the ‘process’ routine will report that there are no records to process. If I click the checkbox and wait for a few seconds before clicking “Process” the record will be found.
How can I teach my “Process” routine to wait for the right amount of time? That is, how can I tell when all the changes made to the BE tables are complete?
I posted this question a while back and received a suggestion of putting in a DoEvents, but that didn’t work.
TIA
Donald