A Microsoft Office (Excel, Word) forum. OfficeFrustration

If this is your first visit, be sure to check out the FAQ by clicking the link above. You may have to register before you can post: click the register link above to proceed. To start viewing messages, select the forum that you want to visit from the selection below.

Go Back   Home » OfficeFrustration forum » Microsoft Access » Using Forms
Site Map Home Register Authors List Search Today's Posts Mark Forums Read  

Tab Form Control - On Click Action



 
 
Thread Tools Display Modes
  #1  
Old October 22nd, 2009, 08:26 PM posted to microsoft.public.access.forms
chris
external usenet poster
 
Posts: 2,039
Default Tab Form Control - On Click Action

I have a form ([Maintain CARS]) with a control form ([cntForm]) that has 5
tabs. I want to have an on_click call to a Module on each of the tabs. When
I place the command "=MessageMaintainCARS()" in the onclick event of each of
the Tabs and open the form and click nothing happens. What am I missing?
  #2  
Old October 22nd, 2009, 08:54 PM posted to microsoft.public.access.forms
Mark Andrews[_2_]
external usenet poster
 
Posts: 600
Default Tab Form Control - On Click Action

If you are using a tab control with 5 tabs then:
How about using the After_update event of the tab control and determining
which tab is choosen by the value of the tab control.

Not sure what control Form is?
Mark
"Chris" wrote in message
...
I have a form ([Maintain CARS]) with a control form ([cntForm]) that has 5
tabs. I want to have an on_click call to a Module on each of the tabs.
When
I place the command "=MessageMaintainCARS()" in the onclick event of each
of
the Tabs and open the form and click nothing happens. What am I missing?



  #3  
Old October 22nd, 2009, 10:27 PM posted to microsoft.public.access.forms
Linq Adams via AccessMonster.com
external usenet poster
 
Posts: 1,474
Default Tab Form Control - On Click Action

This kind of thing is done using the OnChange event. The code would be
something like this:

Private Sub YourTabbedControlName_Change()

Select Case Me.YourTabbedControlName.Value
Case 0
MsgBox "1st Page"

Case 1
MsgBox "2nd Page"
Case 2
MsgBox "3nd Page"
End Select

End Sub

Just replace the Msgbox code with code to run your module.

--
There's ALWAYS more than one way to skin a cat!

Answers/posts based on Access 2000/2003

Message posted via AccessMonster.com
http://www.accessmonster.com/Uwe/For...forms/200910/1

 




Thread Tools
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

vB code is On
Smilies are On
[IMG] code is Off
HTML code is Off
Forum Jump


All times are GMT +1. The time now is 10:26 PM.


Powered by vBulletin® Version 3.6.4
Copyright ©2000 - 2024, Jelsoft Enterprises Ltd.
Copyright ©2004-2024 OfficeFrustration.
The comments are property of their posters.