I have a subform that holds a bunch of records for employees. Rather than manually scrolling through I want to be able to click on one and then the subform displays that record.
I tried
Which works fine if you have the subform open in its own window by itself. But if it is inside "frmAdministrat ion" I get an error: "Run time error 2489, the object "frmsubEmployee s" is not open"
If it matters, the subform inside "frmAdministrat ion" is called "frmsubAdminEdi t", then the SourceObject is changed to select the "frmsubEmployee s". There is also a few other subforms that show up in "frmsubAdminEdi t"
I tried
Code:
DoCmd.GoToRecord acForm, "frmsubEmployees", acGoTo, lstEmployees.Value
If it matters, the subform inside "frmAdministrat ion" is called "frmsubAdminEdi t", then the SourceObject is changed to select the "frmsubEmployee s". There is also a few other subforms that show up in "frmsubAdminEdi t"
Comment