A agehoops Registered User. Local time Today, 18:03 Joined Feb 11, 2006 Messages 351 Aug 31, 2007 #1 I'm using a tab box on a form, and want to use the OnClick event of the tab buttons along the top. I have the option of the OnClick event, but no matter what the code is behind, it won't run!!! Why not? It's really annoying me Thanks
I'm using a tab box on a form, and want to use the OnClick event of the tab buttons along the top. I have the option of the OnClick event, but no matter what the code is behind, it won't run!!! Why not? It's really annoying me Thanks
A agehoops Registered User. Local time Today, 18:03 Joined Feb 11, 2006 Messages 351 Aug 31, 2007 #2 seems it is, but only the area under the actual tab button which just makes it useless!!! How can I got about making it the button itself?
seems it is, but only the area under the actual tab button which just makes it useless!!! How can I got about making it the button itself?
C cpremo Registered User. Local time Today, 10:03 Joined Jun 22, 2007 Messages 50 Aug 31, 2007 #3 Can you post your code? Are there multiple tabs? How about pasting a picture of the form?
A agehoops Registered User. Local time Today, 18:03 Joined Feb 11, 2006 Messages 351 Aug 31, 2007 #4 The code is literally something like txtMonth = 1 That's it. It does work, but only when i click the area just under the tab button which is really stupid
The code is literally something like txtMonth = 1 That's it. It does work, but only when i click the area just under the tab button which is really stupid
RuralGuy AWF VIP Local time Today, 11:03 Joined Jul 2, 2005 Messages 13,825 Aug 31, 2007 #5 Frustrating isn't it? Use the Change event of the Tab control instead. As you discovered, the Click event is all but useless.
Frustrating isn't it? Use the Change event of the Tab control instead. As you discovered, the Click event is all but useless.
A agehoops Registered User. Local time Today, 18:03 Joined Feb 11, 2006 Messages 351 Aug 31, 2007 #6 That works, but how do I then determine which of the buttons has just been selected? Seeing as there are 12 tabs?
That works, but how do I then determine which of the buttons has just been selected? Seeing as there are 12 tabs?
boblarson Smeghead Local time Today, 10:03 Joined Jan 12, 2001 Messages 32,059 Aug 31, 2007 #7 agehoops said: That works, but how do I then determine which of the buttons has just been selected? Seeing as there are 12 tabs? Click to expand... You could use this for the index value: Code: Select Case Me.YourTabControlName.Value or you can use the name of the tab Code: Select Case Me.YourTabControlName.Pages(Me.YourTabControlName.Value).Name
agehoops said: That works, but how do I then determine which of the buttons has just been selected? Seeing as there are 12 tabs? Click to expand... You could use this for the index value: Code: Select Case Me.YourTabControlName.Value or you can use the name of the tab Code: Select Case Me.YourTabControlName.Pages(Me.YourTabControlName.Value).Name
A agehoops Registered User. Local time Today, 18:03 Joined Feb 11, 2006 Messages 351 Sep 1, 2007 #8 perfect! Thanks so much, just what I needed. This forum is the best