I have a navigation form, frmMainNav, with subform control, sfrmMainNav.
ONe of the subforms is frmConfigureSampleGroups, and it contains two list boxes which are related PK/FK. One list box is lstSampleGroups and the other is lstSamplePoints (displays sample points contained in the sample group).
I have a cmdButton which brings up a form to add sample points to a sample group (frmSampleGroupSamples). Both forms remain open.
My challenge is getting the lstSamplePoints on the calling form (frmConfigureSampleGroups) to update when I add a sample point to the list using a cmdSaveAndNew button on the frmSampleGroupSamples.
In the After_Update event of frmSampleGroupSamples I tried:
Forms!frmMainNav.sfrmMainNav.Form!lstSamplePoints.requery
No errors but no list refresh either.
I then tried to use the BrowseTo command to browse to frmConfigureSampleGroups before the requery statement above, and still am not getting a list refresh of the lstSamplePoints. Is it necessary to browse to the subform before I can requery the list?
What should I do differently?
Posted by: david.pratt@outlook.com
Reply via web post | • | Reply to sender | • | Reply to group | • | Start a New Topic | • | Messages in this topic (1) |
Tidak ada komentar:
Posting Komentar