Solved

How to detect change of tab control page

Posted on 2009-04-14
7
191 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
3 Use Cases for Connected Systems

Our Dev teams are like yours. They’re continually cranking out code for new features/bugs fixes, testing, deploying, testing some more, responding to production monitoring events and more. It’s complex. So, we thought you’d like to see what’s working for us.

 

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

Is Your Active Directory as Secure as You Think?

More than 75% of all records are compromised because of the loss or theft of a privileged credential. Experts have been exploring Active Directory infrastructure to identify key threats and establish best practices for keeping data safe. Attend this month’s webinar to learn more.

Question has a verified solution.

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

Suggested Solutions

The first two articles in this short series — Using a Criteria Form to Filter Records (http://www.experts-exchange.com/A_6069.html) and Building a Custom Filter (http://www.experts-exchange.com/A_6070.html) — discuss in some detail how a form can be…
Introduction When developing Access applications, often we need to know whether an object exists.  This article presents a quick and reliable routine to determine if an object exists without that object being opened. If you wanted to inspect/ite…
Get people started with the utilization of class modules. Class modules can be a powerful tool in Microsoft Access. They allow you to create self-contained objects that encapsulate functionality. They can easily hide the complexity of a process from…
In Microsoft Access, learn how to use Dlookup and other domain aggregate functions and one method of specifying a string value within a string. Specify the first argument, which is the expression to be returned: Specify the second argument, which …

910 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

Need Help in Real-Time?

Connect with top rated Experts

23 Experts available now in Live!

Get 1:1 Help Now