DaveyEdgar
Technical User
Greetings all 
I found a couple threads for asking a user to fill in a required field on close.
I do understand this can be done easily in the table properties, but like one of the other member's situations, I have two seperate forms based on the same table, and must do this required field on the form level.
Question. Can it be done on an option group?
My close button has this code...
"frmerrvioperf" is the name of an option group with two options/radio buttons in it. The problem is, its not working. I click the button when both options are still "greyed out" (null) and nothing happens, the form just closes.
Any help would be greatly appreciated.
I found a couple threads for asking a user to fill in a required field on close.
I do understand this can be done easily in the table properties, but like one of the other member's situations, I have two seperate forms based on the same table, and must do this required field on the form level.
Question. Can it be done on an option group?
My close button has this code...
Code:
Private Sub cmddoneadv_Click()
If Me.frmerrvioperf = Null Then
MsgBox "Please choose an Error or Violation"
Else
DoCmd.Close
DoCmd.OpenForm "employees"
DoCmd.Restore
End If
End Sub
"frmerrvioperf" is the name of an option group with two options/radio buttons in it. The problem is, its not working. I click the button when both options are still "greyed out" (null) and nothing happens, the form just closes.
Any help would be greatly appreciated.