473,396 Members | 1,771 Online
Bytes | Software Development & Data Engineering Community
Post Job

Home Posts Topics Members FAQ

Join Bytes to post your question to a community of 473,396 software developers and data experts.

Visible Buttons

I have a 12 tab Access form. There are sub forms built into one main
form with the tabs, but they are all constructed differently in size.
I would like to stack about 8 buttons on the main form and make the
buttons visible as the tabs are worked through. The buttons are going
to be linked to a Word document that will have help instructions for
that particular tab. Can someone help me with the code to make the
buttons visible based on the user clicking on the tab name. Thank you.

Apr 28 '06 #1
3 1681
la******@nationwide.com wrote:
I have a 12 tab Access form. There are sub forms built into one main
form with the tabs, but they are all constructed differently in size.
I would like to stack about 8 buttons on the main form and make the
buttons visible as the tabs are worked through. The buttons are going
to be linked to a Word document that will have help instructions for
that particular tab. Can someone help me with the code to make the
buttons visible based on the user clicking on the tab name. Thank you.


-----BEGIN PGP SIGNED MESSAGE-----
Hash: SHA1

You use the .Value property of the Tab control. It indicates the pages,
starting from zero, that were just clicked.

Private Sub TabCtl0_Change()
MsgBox "Page: " & TabCtl0.value
End Sub

--
MGFoster:::mgf00 <at> earthlink <decimal-point> net
Oakland, CA (USA)

-----BEGIN PGP SIGNATURE-----
Version: PGP for Personal Privacy 5.0
Charset: noconv

iQA/AwUBRFJTMYechKqOuFEgEQKFXACggvfRPcVIm9eK5J+UaWwLsn l5LoQAn3er
nkGbyKOka4syLxqDCz0xNF6+
=+hSr
-----END PGP SIGNATURE-----
Apr 28 '06 #2
IMHO, You may be better off with one button, whose function is
determined by the page they are on, rather than stacking 8 buttons and
dealing with hiding/showing the applicable button.

HTH,
Jana

Apr 28 '06 #3
less code that way because you would have to set 7 off and 1 on for
each condition.
instead use

select case in the onclick event of the button to determine which one
to call. If you want a button for help for the Main form that will have
to be a different one, because the tab number will be set to the last
one used and not changed when you return to the main form (besides you
are in a sense changing to the main form when you press the help
button.

You could also place a button on each of the tabs but in the same place
that would get the help for that particular tab.

Apr 28 '06 #4

This thread has been closed and replies have been disabled. Please start a new discussion.

Similar topics

0
by: peter_bradley | last post by:
Hi all, Not sure if this is possible, but can I change the controls of a command button on a per record bases in a subform. In my case, I would like to make a command button visible only if...
1
by: PCB | last post by:
Hi all, Not sure if this is possible, but can I change the controls of a command button on a per record bases in a subform. In my case, I would like to make a command button visible only if...
5
by: Lyn | last post by:
Hi, I have a form which contains a number of subforms in different pages of a tab control. In the detail section of each subform, I list records related to the main form record, but from...
16
by: Miguel Dias Moura | last post by:
Hello, i have 5 panels in an ASP.net / VB page. The panel 1 is visible the other 4 are NOT visible. I also have 5 images: image 1, image 2, ..., image5. When i click one of the images,...
5
by: Lucvdv | last post by:
Can anyone explain why this happens with the code at the bottom? It looked like a thread safety issue, but changing the declaration of Label1 to Shared doesn't help. Standard windows form;...
8
by: Hansen | last post by:
Hi I have a form with multiple labels and textboxes and listboxes that need to be made visible and not visible when buttons are clicked. Is there anyway of grouping them together so that I have...
0
by: aarepasky | last post by:
I am using ASP.NET 2.0 and C#. I am creating a page with multiple panels on it. In the panels are user controls that have the screen layout to input data. I only show one panel at a time by...
8
by: Doc John | last post by:
I have an MDI container with a child Form which will be visible according to certain events. The problem is that when I set the property Visible to False and then back to True, the Form will be in...
4
by: Miki | last post by:
Hello, I have a simple Tkinter window with and buttons at the bottom. When I resize the window to be shorter, the first thing to disappear are the buttons, however I want these button to be...
0
by: Charles Arthur | last post by:
How do i turn on java script on a villaon, callus and itel keypad mobile phone
0
by: ryjfgjl | last post by:
In our work, we often receive Excel tables with data in the same format. If we want to analyze these data, it can be difficult to analyze them because the data is spread across multiple Excel files...
0
BarryA
by: BarryA | last post by:
What are the essential steps and strategies outlined in the Data Structures and Algorithms (DSA) roadmap for aspiring data scientists? How can individuals effectively utilize this roadmap to progress...
1
by: nemocccc | last post by:
hello, everyone, I want to develop a software for my android phone for daily needs, any suggestions?
0
marktang
by: marktang | last post by:
ONU (Optical Network Unit) is one of the key components for providing high-speed Internet services. Its primary function is to act as an endpoint device located at the user's premises. However,...
0
by: Hystou | last post by:
Most computers default to English, but sometimes we require a different language, especially when relocating. Forgot to request a specific language before your computer shipped? No problem! You can...
0
jinu1996
by: jinu1996 | last post by:
In today's digital age, having a compelling online presence is paramount for businesses aiming to thrive in a competitive landscape. At the heart of this digital strategy lies an intricately woven...
0
by: Hystou | last post by:
Overview: Windows 11 and 10 have less user interface control over operating system update behaviour than previous versions of Windows. In Windows 11 and 10, there is no way to turn off the Windows...
0
agi2029
by: agi2029 | last post by:
Let's talk about the concept of autonomous AI software engineers and no-code agents. These AIs are designed to manage the entire lifecycle of a software development project—planning, coding, testing,...

By using Bytes.com and it's services, you agree to our Privacy Policy and Terms of Use.

To disable or enable advertisements and analytics tracking please visit the manage ads & tracking page.