Senin, 15 Mei 2017

[MS_AccessPros] REquery List Box on Calling Subform Control

 

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)

Have you tried the highest rated email app?
With 4.5 stars in iTunes, the Yahoo Mail app is the highest rated email app on the market. What are you waiting for? Now you can access all your inboxes (Gmail, Outlook, AOL and more) in one place. Never delete an email again with 1000GB of free cloud storage.


.

__,_._,___

Tidak ada komentar:

Posting Komentar