Solved After update combobox on subform

tihmir

Registered User.
Local time
Yesterday, 22:37
Joined
May 1, 2018
Messages
257
Hi all,
I have a form "FormA" with 2 comboboxes - cboMunicipality and cboCity. The cboMunicipality on Event After Update hase Me.cboCity.Requery. The cboCity on Event Row Source on Build has 2 tables :
Code:
SELECT tbl_Cities.City, tbl_Municipalities.Municipality
FROM tbl_Municipalities INNER JOIN tbl_Cities ON tbl_Municipalities.MunicipalityID = tbl_Cities.MunicipalityID
WHERE (((tbl_Municipalities.Municipality)=[Forms]![FormA]![cboMunicipality]));
[Forms]![FormA]![cboMunicipality] - this is in my Criteria on tbl_Municipalities
When I try to use this form "FormA" as subform my cboCity not works and show my Enter Parameter Value ? Forms!FormA!cboMunicipality
What do I need to change to be able to after update the cboCity ?
 
This is the syntax you're after:

Forms!Mainform!Subform1.Form!ControlName
 
This is the syntax you're after:
Forms!Mainform!Subform1.Form!ControlName
Until I found the right place to put the syntax........, it was a big mess!.....(build, Criteria... build, Criteria, build, Criteria). Finally I did it! I will definitely remember this lesson! 😊
Тhank you very much, pbaldy!
 
Happy to help!
 

Users who are viewing this thread

Back
Top Bottom