Thread: set focus
View Single Post
  #1   Report Post  
tkaplan
 
Posts: n/a
Default set focus


I have a form with a txt box named txtAuditor. on the exit event, i have
some validation checks.
i want that if the validation fails, the focus will go back to that txt
box.

i currectly have

if variable=false then
txtauditor.value=""
txtauditor.setfocus
endif

this did not work!
Any suggestions??


--
tkaplan
------------------------------------------------------------------------
tkaplan's Profile: http://www.excelforum.com/member.php...o&userid=22987
View this thread: http://www.excelforum.com/showthread...hreadid=471132