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

Go to next page on tab control

Status
Not open for further replies.

3239

Technical User
May 14, 2003
64
How do I get Page 1 of my tab control to switch to Page 2 once I press enter?

Thanks
 
Set your KeyPreview event to Yes and use the OnKeyPress event to monitor the Enter key for GoTo Page X. It gets complex if you're using the Enter key to move between fields or other functions. In that case you have to evaluate the action and make a decision.

Win2000P/Acc2000 - It's best to stay with products that work.
 
Okay should I use the Docmd.GoToPage method in the OnKeyPress event?
 
Try it. Unfortunately, I don't program much with macros with the exception of using them in toolbars, but there is nothing gained if you won't try.

Win2000P/Acc2000 - It's best to stay with products that work.
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top