What I did is if invalid information was entered I used the nodefault command and that seemed to work. I had the code in the valid event and it worked there too, but Setfocus was called later in the program and we kept getting errors because you can't call setfocus from a valid event, for what ever reason . . .
Thanks for the help,
Jim Rieck
>Jim, Since you cannot setfocus() in the valid or the lostfocus event, I have called the click of another object from the valid or lostfocus and had that click setfocus(), I know this is probably not very clean, but it works.
>Hope this helps
>James
Thanks
Jim