Sinfathisar
Registered User.
- Local time
- Today, 14:32
- Joined
- Jan 29, 2009
- Messages
- 60
Hi All,
I have an unbound form with a combo box, a command button that runs an update/insert sql, and two datasheet view subforms (each bound). No defined Master/Child links and both subforms dataentry=No.
The combo box value is used as criteria for the subforms and I have a requery both subforms afterUpdate of the combo box.
The first subform always has corresponding records when a value is selected in combo box, and the second subform sometimes has no corresponding record until after the command button is clicked and a record is inserted.
The issue is this: the first subform automatically shows updated values from the update function when I select the subform control, but the second subform will NOT show the inserted record until the afterUpdate event is fired again from the combo box (ie - toggle between values in the combo box). I've tried adding a requery of the subform after the sql inserts, and resetting the record source to no avail. Is there a workaround? I would like the user to see a record has been added in the subform window immediately after the record was added.
Thank you!
I have an unbound form with a combo box, a command button that runs an update/insert sql, and two datasheet view subforms (each bound). No defined Master/Child links and both subforms dataentry=No.
The combo box value is used as criteria for the subforms and I have a requery both subforms afterUpdate of the combo box.
The first subform always has corresponding records when a value is selected in combo box, and the second subform sometimes has no corresponding record until after the command button is clicked and a record is inserted.
The issue is this: the first subform automatically shows updated values from the update function when I select the subform control, but the second subform will NOT show the inserted record until the afterUpdate event is fired again from the combo box (ie - toggle between values in the combo box). I've tried adding a requery of the subform after the sql inserts, and resetting the record source to no avail. Is there a workaround? I would like the user to see a record has been added in the subform window immediately after the record was added.
Thank you!