G
Guest
Hi all,
I want to check on exit the text field on my form (whether the user input
information with single spacing or double spacing) and to return him into the
field for editing if spacing is double.
I put the below code on After Update:
If Me.[ToFrom1] Like ("*" + " " + "*") Then
MsgBox "Please remove double spacing!"
Me.ToFrom1.SetFocus
Else
End If
The code works, except it wouldnt return the user into the same field.
So probably I need something else than "SetFocus" thing...
Can anybody help?
Thank you.
Lana
I want to check on exit the text field on my form (whether the user input
information with single spacing or double spacing) and to return him into the
field for editing if spacing is double.
I put the below code on After Update:
If Me.[ToFrom1] Like ("*" + " " + "*") Then
MsgBox "Please remove double spacing!"
Me.ToFrom1.SetFocus
Else
End If
The code works, except it wouldnt return the user into the same field.
So probably I need something else than "SetFocus" thing...
Can anybody help?
Thank you.
Lana