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 TouchToneTommy on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

Setfocus on commandbutton

Status
Not open for further replies.

JohnLong

Programmer
Apr 21, 2004
15
NL
Hi ,

When I have 10 commandbuttons on my form, I want to control the focus. So, I have chosen for Setfocus, and when the user clicks on the first commandbutton the focus has to go to the 10th commandbutton. But when I have the command:
frm_p6_cmd.setfocus I get an errormessage, with no subject. The system say: Not classified error. What do I have to do to get the focus on the commandbutton?

Jan
 
What else is in the On Click event of the first cmd button? Are there any other events associated with the first cmd button?
 
There is a key-up event declared and an enter event on the button, after these events the focus has to go to the lastcommand-button.
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top