R
Raj
I have a date field and when the user enters the date the
first If checks to see if the [Handoff Date] has been
entered this works great. The second If verifies if the
field [allissuescompdate] is blank
and if so it ask if the user wants to removed the date
from the field. This does not work.
the third IF ask if the user wants to enter the date it
work but if the user hit Cancel the date still enters.
I hope someone be kind and help me.
Thanks in Advance
If Len(Me.cbxhandoffdate.Value & "") = 0 Then
MsgBox "You must enter Hand-Off Date" & _
" before you can enter All Issues Resolved
Date.", vbExclamation, _
"Correction!"
Cancel = True
Me.cbxallissuecompdate.Undo
Else
If Len(Me.cbxallissuecompdate.Value & "") = "" Then
MsgBox " Are you stue you want to remove the" & _
" All Issues Resolved Date?"
Else
Exit Sub
If MsgBox("Are you sure you want to enter a Resolved
Date?", 65, "Close Circuit") = vbOK Then
Exit Sub
End If
End If
End If
first If checks to see if the [Handoff Date] has been
entered this works great. The second If verifies if the
field [allissuescompdate] is blank
and if so it ask if the user wants to removed the date
from the field. This does not work.
the third IF ask if the user wants to enter the date it
work but if the user hit Cancel the date still enters.
I hope someone be kind and help me.
Thanks in Advance
If Len(Me.cbxhandoffdate.Value & "") = 0 Then
MsgBox "You must enter Hand-Off Date" & _
" before you can enter All Issues Resolved
Date.", vbExclamation, _
"Correction!"
Cancel = True
Me.cbxallissuecompdate.Undo
Else
If Len(Me.cbxallissuecompdate.Value & "") = "" Then
MsgBox " Are you stue you want to remove the" & _
" All Issues Resolved Date?"
Else
Exit Sub
If MsgBox("Are you sure you want to enter a Resolved
Date?", 65, "Close Circuit") = vbOK Then
Exit Sub
End If
End If
End If