M
Melinda Chase
Hello,
I have a number of subforms which contain combo boxes. I have buttons that
open forms to allow me to enter more values in the tables the combo boxes
are pulling from. On the forms' close events, I requery the combo boxes.
This is working beautifully for one instance, but not the other.
Here is the code that doesn't work:
Private Sub Form_Close()
Form_frmEmployeeOrganizationSub.OrgID.Requery
End Sub
But this code does work:
Private Sub Form_Close()
Form_frmEmployeeCertificationSub.CertificationID.Requery
End Sub
The error I get says it can't find the target. I've tried moving the
requery to on click event of the button that opens the form, but I get a
similar error. It just doesn't believe that the OrgID field on the
frmEmployeeOrganizationSub exists.
And, yes, I've tripled check that everything has the correct name.
Any ideas?
Thanks!
Melinda
I have a number of subforms which contain combo boxes. I have buttons that
open forms to allow me to enter more values in the tables the combo boxes
are pulling from. On the forms' close events, I requery the combo boxes.
This is working beautifully for one instance, but not the other.
Here is the code that doesn't work:
Private Sub Form_Close()
Form_frmEmployeeOrganizationSub.OrgID.Requery
End Sub
But this code does work:
Private Sub Form_Close()
Form_frmEmployeeCertificationSub.CertificationID.Requery
End Sub
The error I get says it can't find the target. I've tried moving the
requery to on click event of the button that opens the form, but I get a
similar error. It just doesn't believe that the OrgID field on the
frmEmployeeOrganizationSub exists.
And, yes, I've tripled check that everything has the correct name.
Any ideas?
Thanks!
Melinda