D
dsc2bjn
I would like to write some VB code which will run two different macros.
If the Check box is NOT check, I want it to run one macro.
If the Check box is checked, I want the macro to run a different one.
I tried using the AfterUpdate and creating the following:
Private Sub CAMO_Concurrence_AfterUpdate(Cancel As Integer)
If CAMO_Concurrence = "True" Then DoCmd.RunMacro "macSAR_Weakness_(Closed)"
If CAMO_Concurrence = "False" Then DoCmd.RunMacro "macSAR_Weakness_(Open)"
End Sub
I get a message stating in part..."Procedure declaration does not match
description of event or procedure having the same name.
How can I do this?
If the Check box is NOT check, I want it to run one macro.
If the Check box is checked, I want the macro to run a different one.
I tried using the AfterUpdate and creating the following:
Private Sub CAMO_Concurrence_AfterUpdate(Cancel As Integer)
If CAMO_Concurrence = "True" Then DoCmd.RunMacro "macSAR_Weakness_(Closed)"
If CAMO_Concurrence = "False" Then DoCmd.RunMacro "macSAR_Weakness_(Open)"
End Sub
I get a message stating in part..."Procedure declaration does not match
description of event or procedure having the same name.
How can I do this?