AlanSearle
New member
- Local time
- Today, 12:02
- Joined
- Sep 7, 2011
- Messages
- 5
Hi Everyone,
In my main forms I use me.myobject.requery to refresh particular list and combo boxes. That works fine.
I tried using this in subforms because I found that, when the main form was refiltered, the subform refiltered correctly but any combo-boxes in that form did not refresh.
I'm sure I used the correct syntax ...
Forms!formname!subformname.Form.controlname.requery
... but the combo simply wouldn't refresh.
I tried various permutations of refreshing and requerying the subform but that didn't work and in the end used the SendKeys "{F9}" sledge-hammer. That fixed it but caused error messages / warnings under certain (unpredictable) circumstances.
Can anyone give me a tip here? How can I do this cleanly so that the user can navigate through data with the form, the subform and the combos contained in the subform correctly refreshing?
I have a potential solution which would involve double-clicking on potentially editable fields and a pop-up being displayed when then writes the data back. This would work fine but it seems to be extra programming where a simple requery would do.
Many thanks for any help that you can give me.
Regards,
Alan Searle
Cologne, Germany
In my main forms I use me.myobject.requery to refresh particular list and combo boxes. That works fine.
I tried using this in subforms because I found that, when the main form was refiltered, the subform refiltered correctly but any combo-boxes in that form did not refresh.
I'm sure I used the correct syntax ...
Forms!formname!subformname.Form.controlname.requery
... but the combo simply wouldn't refresh.
I tried various permutations of refreshing and requerying the subform but that didn't work and in the end used the SendKeys "{F9}" sledge-hammer. That fixed it but caused error messages / warnings under certain (unpredictable) circumstances.
Can anyone give me a tip here? How can I do this cleanly so that the user can navigate through data with the form, the subform and the combos contained in the subform correctly refreshing?
I have a potential solution which would involve double-clicking on potentially editable fields and a pop-up being displayed when then writes the data back. This would work fine but it seems to be extra programming where a simple requery would do.
Many thanks for any help that you can give me.
Regards,
Alan Searle
Cologne, Germany