M
MKuria
NEw to VBA
How do I enter the following condition in BeforeUpdate
Rule – If > [Initial Move Scheduled Pickup Date] > [Service Start Date] And
< [Service Completion Date] then user must enter data in [service Notes]
I would be entering the condition under service notes (before update)
Private Sub Service_Notes_BeforeUpdate(Cancel As Integer)
If (Me. Initial Move Scheduled Pickup Date >Me.Service Start Date And
<Me.Service Completion Date) Then
MsgBox "Date Entered is not within Service dates – Enter Reason",
vbCritical
Cancel = True
End If
End Sub
This is not working.
How do I enter the following condition in BeforeUpdate
Rule – If > [Initial Move Scheduled Pickup Date] > [Service Start Date] And
< [Service Completion Date] then user must enter data in [service Notes]
I would be entering the condition under service notes (before update)
Private Sub Service_Notes_BeforeUpdate(Cancel As Integer)
If (Me. Initial Move Scheduled Pickup Date >Me.Service Start Date And
<Me.Service Completion Date) Then
MsgBox "Date Entered is not within Service dates – Enter Reason",
vbCritical
Cancel = True
End If
End Sub
This is not working.