Sure looks like it should work. One debugging strategy is to put a
Msgbox statement inside your "if variable=false then" / end if
statement. That way you can deliberately cause your validation to fail
and when you get the message box you know your logic is sound.
if variable=false then
msgbox ("About to set focus to txt.auditor")
txtauditor.value=""
txtauditor.setfocus
endif
|