E
esn
Hi everyone,
I'm afraid this may be a corruption issue but let me know what you
think. I have a data entry form where users select a parent record
from a combo box then enter data into a subform. The subform is
disabled until the OnChange event of the combo box fires. Next to the
combo box is a button which opens a pop-up form for adding a new
parent record. On the pop up, the "Done" button sets the value of the
combo box to the ID of the newly added parent record, closes the pop
up, and enables the subform.
When the database is first opened and the user navigates to this data
entry form, this macro (OnClick for the "Done" button) doesn't work.
The new parent record is saved and the subform is enabled, but the
combo box remains blank and the new record doesn't appear as an
available value in the drop down list. SetValue actions can be weird
sometimes so I figured I screwed up somewhere or this was just the
wrong way of doing things. But then I realized that if I close the
data entry form and open it again, everything works like a charm.
When a new parent record is added and the "Done" button on the pop up
form is clicked, the combo box is set to the new record before the pop
up closes.
What the?
I'm afraid this may be a corruption issue but let me know what you
think. I have a data entry form where users select a parent record
from a combo box then enter data into a subform. The subform is
disabled until the OnChange event of the combo box fires. Next to the
combo box is a button which opens a pop-up form for adding a new
parent record. On the pop up, the "Done" button sets the value of the
combo box to the ID of the newly added parent record, closes the pop
up, and enables the subform.
When the database is first opened and the user navigates to this data
entry form, this macro (OnClick for the "Done" button) doesn't work.
The new parent record is saved and the subform is enabled, but the
combo box remains blank and the new record doesn't appear as an
available value in the drop down list. SetValue actions can be weird
sometimes so I figured I screwed up somewhere or this was just the
wrong way of doing things. But then I realized that if I close the
data entry form and open it again, everything works like a charm.
When a new parent record is added and the "Done" button on the pop up
form is clicked, the combo box is set to the new record before the pop
up closes.
What the?