Hello all ...
Simple problem ...
2 check boxes on a form that the user must select at least once ...
In the button a simple call procedure lets the form continue if the user has selected at least one of the check boxes ..
Btn code:
If CheckForm = False Then
Exit Sub
Else
Function code:
Public Function CheckForm() As Boolean
Dim db As Database
If Forms![Staff]![chkID] = 0 And Forms![Staff]![chkAgency] = 0 Then
CheckForm = False
Else
CheckForm = True
End If
End Function
Where am I going wrong ...??
Tiny...
Simple problem ...
2 check boxes on a form that the user must select at least once ...
In the button a simple call procedure lets the form continue if the user has selected at least one of the check boxes ..
Btn code:
If CheckForm = False Then
Exit Sub
Else
Function code:
Public Function CheckForm() As Boolean
Dim db As Database
If Forms![Staff]![chkID] = 0 And Forms![Staff]![chkAgency] = 0 Then
CheckForm = False
Else
CheckForm = True
End If
End Function
Where am I going wrong ...??
Tiny...