I am trying to notify users if they schedule a delivery on a weekend. I have the code below. However, it doesn't set focus back on NewDate. It skips ahead to Comments. What am I missing?
Private Sub NewDate_AfterUpdate()
If Format(Me.NewDate, "ddd") = "Sat" Then
If MsgBox("You have a chosen to deliver on a Saturday! Are you sure?", vbYesNo, "Scheduling New Date") = vbNo Then
Me![NewDate].SetFocus
Else
End If
End If
End Sub
Private Sub NewDate_AfterUpdate()
If Format(Me.NewDate, "ddd") = "Sat" Then
If MsgBox("You have a chosen to deliver on a Saturday! Are you sure?", vbYesNo, "Scheduling New Date") = vbNo Then
Me![NewDate].SetFocus
Else
End If
End If
End Sub