By using this site, you agree to our updated Privacy Policy and our Terms of Use. Manage your Cookies Settings.
445,705 Members | 1,777 Online
Bytes IT Community
+ Ask a Question
Need help? Post your question and get tips & solutions from a community of 445,705 IT Pros & Developers. It's quick & easy.

Problem with "OnClick"

P: n/a
I have a form with tabs set up with each tab representing a page. However when
I try to do an "OnClick" event on the page, nothing happens.

The program does not "see" the "Click" event, even with something so simple as
opening a Message Box "OnClick".

Thanks for any suggestions on how to get this to work.
Nov 12 '05 #1
Share this Question
Share on Google+
4 Replies


P: n/a
mf***@aol.com (MFS 43) wrote in message news:<20***************************@mb-m29.aol.com>...
I have a form with tabs set up with each tab representing a page. However when
I try to do an "OnClick" event on the page, nothing happens.

The program does not "see" the "Click" event, even with something so simple as
opening a Message Box "OnClick".

Thanks for any suggestions on how to get this to work.


Although it would help if you could post the code you are using in an
effort to accomplish this, I think I have a feel for what you are
trying to do. In the exit event of the last control on your form, add
a procedure that will pass the focus to a control on your next page.

Forms!frmSalesContactInfo!txtEquipment.SetFocus

I used this in a data entry form I designed so the user could complete
the record across all the pages in the form without having to leave
the keyboard.

HTH

Jason
Nov 12 '05 #2

P: n/a
Thanks for the help.

The code is hardly involved. If I try to simply open a Message Box when
the tab is clicked (with an "OnClick" event, nothing happens. I doubt
the code is the problem.

I will try to set the focus on the page as you suggested.

Michael S

*** Sent via Developersdex http://www.developersdex.com ***
Don't just participate in USENET...get rewarded for it!
Nov 12 '05 #3

P: n/a
Rob
Change the location of your code to the "ON Change" event for the tab control.
That is the event that fires each time you click a different tab.
Rob
Nov 13 '05 #4

P: n/a
I'll give it a try. Ialso just discovered that with tabs there is both
a page control and a tab control.

Michael S

*** Sent via Developersdex http://www.developersdex.com ***
Don't just participate in USENET...get rewarded for it!
Nov 13 '05 #5

This discussion thread is closed

Replies have been disabled for this discussion.