I have a form that contains an option group with 3 option buttons (radio type).
For this example let’s call them op1,op2, and op3.
I am trying to write an if statement in the after update event of a control on the form that will put up a message box that advises the user that they need to select op1 if it’s not already selected.
This is what I wrote :
When the event runs I get a runtime error 2427 that says “You entered an expression that has no value”
What’s the proper syntax for notifying the user that they must select option button 1 if it’s not selected.
Thanks for your help.
For this example let’s call them op1,op2, and op3.
I am trying to write an if statement in the after update event of a control on the form that will put up a message box that advises the user that they need to select op1 if it’s not already selected.
This is what I wrote :
Code:
Private Sub Year_AfterUpdate()
If Me.Option24 = False Then
MsgBox "Please click the period button", vbOKCancel
End If
End Sub
What’s the proper syntax for notifying the user that they must select option button 1 if it’s not selected.
Thanks for your help.