karatelung
Registered User.
- Local time
- Today, 07:20
- Joined
- Apr 5, 2001
- Messages
- 84
I've done a search and was unable to find exactly what I need.
I have a combo box, PerDiem, that has a list of rates that come from a table, tblPerDiemList. I have a button that opens a form, frmPerDiemRates, where you can add a rate to the list.
I want to requery the combo box. The following code works when I open the subform separately as it's own form:
(OnClose event)
DoCmd.Close
Forms![subfrmPlacement]!PerDiem.Requery
When I open the main form containing the subform, subfrmPlacement, and then open the frmPerDiem, the Requery part doesn't work because it's not referencing the subform correctly.
How can I make this work? Please help.
Thanks,
Richard
I have a combo box, PerDiem, that has a list of rates that come from a table, tblPerDiemList. I have a button that opens a form, frmPerDiemRates, where you can add a rate to the list.
I want to requery the combo box. The following code works when I open the subform separately as it's own form:
(OnClose event)
DoCmd.Close
Forms![subfrmPlacement]!PerDiem.Requery
When I open the main form containing the subform, subfrmPlacement, and then open the frmPerDiem, the Requery part doesn't work because it's not referencing the subform correctly.
How can I make this work? Please help.
Thanks,
Richard