J
JNariss
I have a form with many checkboxes. It is actually a Main Menu form
with some checkboxes already checked as default selections and others
the users can choose from.
Depending on what the users select, some selections have another form
that goes with them. So if my user puts a check next to checkbox A (for
example) I would like form A to open.
I have found out the code for this should go behind the After Update
event. So here is the code I am using:
Private Sub Ctl1001_BPCS_Production_Data_Base_AfterUpdate()
If Me.[Ctl1001_BPCS_Production_Data_Base] = True Then
strFormName = "[frmAppCodeMenu]"
End If
DoCmd.OpenForm strFormName, acNormal
End Sub
My checkbox name is: Ctl1001_BPCS_Production_Data_Base
My form name to have opened if the checkbox is "true" is:
frmAppCodeMenu
Whenever I preview my form and put a check in the checkbox I get the
following error:
The expression After Update you've entered as the event property
setting producted the following error: object or class does not support
the set of events.
Does anyone know what is happening here and how I can make this work
correctly??
Thanks,
Justine
with some checkboxes already checked as default selections and others
the users can choose from.
Depending on what the users select, some selections have another form
that goes with them. So if my user puts a check next to checkbox A (for
example) I would like form A to open.
I have found out the code for this should go behind the After Update
event. So here is the code I am using:
Private Sub Ctl1001_BPCS_Production_Data_Base_AfterUpdate()
If Me.[Ctl1001_BPCS_Production_Data_Base] = True Then
strFormName = "[frmAppCodeMenu]"
End If
DoCmd.OpenForm strFormName, acNormal
End Sub
My checkbox name is: Ctl1001_BPCS_Production_Data_Base
My form name to have opened if the checkbox is "true" is:
frmAppCodeMenu
Whenever I preview my form and put a check in the checkbox I get the
following error:
The expression After Update you've entered as the event property
setting producted the following error: object or class does not support
the set of events.
Does anyone know what is happening here and how I can make this work
correctly??
Thanks,
Justine