Solved

How to detect change of tab control page

Posted on 2009-04-14
7
192 Views
Last Modified: 2013-11-26
Access 2003

I have a two-page tab control with subforms on each page. I need to run code when the user selects a tab page. The tab page On Click event fires when the body of the tab page is clicked, but I can't get it to fire when the tab name is clicked. I've also tested this with a blank tab control on a blank form, with the same result. So how do I run code at the point the user selects the page?
0
Comment
Question by:SteveCond
  • 4
  • 3
7 Comments
 
LVL 65

Expert Comment

by:rockiroads
ID: 24136640
just to confirm, is this form developed using visual studio or msaccess?
0
 

Author Comment

by:SteveCond
ID: 24136660
Beg pardon - brain not in gear yet after the Bank Holiday! I meant to put it just in the msaccess area. I also accidentally gave it 500 points - but I'll let it go at that (Happy Easter.....)
0
 
LVL 65

Expert Comment

by:rockiroads
ID: 24136668
Trust you had a good Easter, nice long weekend :)

Try using the On change method instead
0
Master Your Team's Linux and Cloud Stack

Come see why top tech companies like Mailchimp and Media Temple use Linux Academy to build their employee training programs.

 

Author Comment

by:SteveCond
ID: 24136746
Wonderful time thanks - but too much booze! Yourself?

On change works a treat. Thanks!
0
 
LVL 65

Accepted Solution

by:
rockiroads earned 500 total points
ID: 24136767
Booze just the last two days unfortunately, Ive had this damn cough I couldnt get rid of so ruined it a bit, otherwise was good. And of course good footy at the weekend.

Glad you got it going
0
 

Author Closing Comment

by:SteveCond
ID: 31569833
Shame about the cough!
0
 
LVL 65

Expert Comment

by:rockiroads
ID: 24136965
thanks buddy, good luck with the rest of your project
0

Featured Post

Master Your Team's Linux and Cloud Stack!

The average business loses $13.5M per year to ineffective training (per 1,000 employees). Keep ahead of the competition and combine in-person quality with online cost and flexibility by training with Linux Academy.

Question has a verified solution.

If you are experiencing a similar issue, please ask a related question

This article is a continuation or rather an extension from Cascading Combos (http://www.experts-exchange.com/A_5949.html) and builds on examples developed in detail there. It should be understandable alone, but I recommend reading the previous artic…
It’s been over a month into 2017, and there is already a sophisticated Gmail phishing email making it rounds. New techniques and tactics, have given hackers a way to authentically impersonate your contacts.How it Works The attack works by targeti…
Polish reports in Access so they look terrific. Take yourself to another level. Equations, Back Color, Alternate Back Color. Write easy VBA Code. Tighten space to use less pages. Launch report from a menu, considering criteria only when it is filled…
With Secure Portal Encryption, the recipient is sent a link to their email address directing them to the email laundry delivery page. From there, the recipient will be required to enter a user name and password to enter the page. Once the recipient …

776 members asked questions and received personalized solutions in the past 7 days.

Join the community of 500,000 technology professionals and ask your questions.

Join & Ask a Question