G
Guest
I am trying to stop entry of a future date and clear the field and move the
cursor back to the same field. Everything works except the set focus. It
goes to the next field. I tried it in exit and lost focus events.
If txtDateInRepair > Date Then
MsgBox ("You Can't input a date Passed Todays Date")
txtDateInRepair = Null
Me.txtDateInRepair.SetFocus
cursor back to the same field. Everything works except the set focus. It
goes to the next field. I tried it in exit and lost focus events.
If txtDateInRepair > Date Then
MsgBox ("You Can't input a date Passed Todays Date")
txtDateInRepair = Null
Me.txtDateInRepair.SetFocus