G
Guest
A command button on my main form calls up a dialog box. The dialog box
prompts the user to enter data, and then runs a macro when the dialog box is
closed. However, the changes made in the dialog box do not appear
subsequently on the main form, even if I add a refresh or requery command to
the macro (or both). I can refresh manually, but I get a "write conflict"
error. If I respond to this error by dropping changes, then the main form
updates to the new data. Interestingly, if I subsequently call up the dialog
box again while leaving the main form open, it works properly on all but the
first time. Is there a way to program the computer to automatically accept
the changes from the dialog box and overwrite the data open on the main form,
then requery/refresh the main form so it displays properly?
prompts the user to enter data, and then runs a macro when the dialog box is
closed. However, the changes made in the dialog box do not appear
subsequently on the main form, even if I add a refresh or requery command to
the macro (or both). I can refresh manually, but I get a "write conflict"
error. If I respond to this error by dropping changes, then the main form
updates to the new data. Interestingly, if I subsequently call up the dialog
box again while leaving the main form open, it works properly on all but the
first time. Is there a way to program the computer to automatically accept
the changes from the dialog box and overwrite the data open on the main form,
then requery/refresh the main form so it displays properly?