G
Guest
sub text_beforeupdate
cancel = true
text.undo
end sub
Then get focus back in text, the bad value highlighted.
Only problem is user can tab or click out of text and the bad value remains.
or if I try:
sub text_afterupdate
text = ""
end sub
Then the bad value is cleared, but of course focus goes to the next control.
Is there a way to clear the value AND keep the focus in the text control?
(Using Access 2003 SP2)
cancel = true
text.undo
end sub
Then get focus back in text, the bad value highlighted.
Only problem is user can tab or click out of text and the bad value remains.
or if I try:
sub text_afterupdate
text = ""
end sub
Then the bad value is cleared, but of course focus goes to the next control.
Is there a way to clear the value AND keep the focus in the text control?
(Using Access 2003 SP2)