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

Set focus

Status
Not open for further replies.

DrillMonkey

Technical User
Sep 29, 2006
64
US
I have a form with a print command button. When the button is pushed it prints a report and sets the form with a new record. The focus remains on the print button, Id prefer it to be set to the "drivers" field or the top of the tab order.
 
in the code behind the on_click event of the print button, after the print command (probably docmd.openreport), put drivers.setfocus, assuming drives in sthe name of the drivers control

Regards

Ken Reay
Freelance Solutions Developer
Boldon Information Systems Ltd
Website needs upgrading, but for now - UK
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top