Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations SkipVought on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

Setfocus on a Valid procedure

Status
Not open for further replies.

safarijoe2000

Programmer
Jul 25, 2002
38
0
0
GB
Hello,

I know I can't have a "setfocus" statement on a Valid procedure, but is there an alternative ? What else can I use to redirect my cursor to other parts of my form.

Any help would be great.

Thanks
 
safarijoe2000

Try using the LostFocus.

Mike Gagnon

If you want to get the best response to a question, please check out FAQ184-2483 first.
 
safarijoe2000,

Use the numeric value with "Return" command in Valid event.

Example:

Return 3
or
Return nControlToSetFocus

Lostfocus will works fine when there are certain types of controls on the container(form, pageframe, etc).

Foxbldr







Foxbldr


 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top