hardhitter06
Registered User.
- Local time
- Today, 14:10
- Joined
- Dec 21, 2006
- Messages
- 600
Access 2003.
Can someone quickly show me what I need to change in my code so that if my combo box is selected "Yes", this second field is required.
Yes/No Field: ApproverYesNo
2nd Field:Approver
Private Sub Form_BeforeUpdate(Cancel As Integer)
If Me.ApproverYesNo = "Yes" Then
Me.frmInputState.Form.Approver IsNull
MsgBox ctrl.Approver & " Cannot Be Left Empty!"
Cancel = True
Exit Sub
End If
End Sub
Thank you.
Can someone quickly show me what I need to change in my code so that if my combo box is selected "Yes", this second field is required.
Yes/No Field: ApproverYesNo
2nd Field:Approver
Private Sub Form_BeforeUpdate(Cancel As Integer)
If Me.ApproverYesNo = "Yes" Then
Me.frmInputState.Form.Approver IsNull
MsgBox ctrl.Approver & " Cannot Be Left Empty!"
Cancel = True
Exit Sub
End If
End Sub
Thank you.
Last edited: