Good Afternoon;
I need to check that two fields on a form contain data before closing as they are linked to a report and can't have data in one field and not the other, I have tried the following:
But it isn’t working, please can someone give me a pointer as to how I check two criteria with one iff statement?
Your help as always is most appreciated.
Kind Regards
Tor Fey
I need to check that two fields on a form contain data before closing as they are linked to a report and can't have data in one field and not the other, I have tried the following:
Code:
Dim varwhite, varyellow
varwhite = RGB(255, 255, 255)
varyellow = RGB(255, 255, 0)
If Me.TF_Ben_B_S.Value > 0 Then
If (IsNull(Me.Ben_B_S_Date)) Then
MsgBox "Benefit Saving Date Required", vbExclamation, "Benefit Saving Date Required"
Me.TF_Ben_B_S_Date.SetFocus
Me.TF_Ben_B_S_Date.BackColor = varyellow
Exit Sub
But it isn’t working, please can someone give me a pointer as to how I check two criteria with one iff statement?
Your help as always is most appreciated.
Kind Regards
Tor Fey