i have a button that opens a form and sets two list box values based on a value from a combobox in an open form. one list box's value are dependent on the others; there is a many-to-one relationship. so for example:
cboSchool on formA contains a value. i press a button, formB opens and the button runs this code setting the two list boxes to appropriate values.
Expand|Select|Wrap|Line Numbers
- DoCmd.OpenForm stDocName, , , stLinkCriteria
- Forms!frmSchoolData.lstDistrict.Value = intDist 'set new form equal to menu value
- Forms!frmSchoolData.lstSchool.Requery
- Forms!frmSchoolData.lstSchool.Value = intSchool 'set new form equal to menu value
- Forms!frmSchoolData.lstSchool.Requery