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. |
|
|
Thread Tools | Display Modes |
#1
|
|||
|
|||
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
|
|||
|
|||
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
|
|||
|
|||
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 | |
|
|