473,395 Members | 1,974 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,395 software developers and data experts.

Set tabbed page to invisible

kev
Hi folks,

Firstly, a great thanks to all members of this group who has been of
great help to me. Due to your help, i have been able to proceed with my
project.
Now, i have another question.Please help
I have a form with 10 tabs on it. I use this tabbed
form"frmSL1Registration" to display all the records that have been
submitted. My question here is how do i make the tab page(any
particluar tab page) to appear invisible if there is no records
available for this particular page?

My tabbed page is "Level1Punchlist"
The controls on it is text
box-"Issue","Responsibility","CompletionDate"
Thus, you can see that if user does not have any issue, these fields
will be left blank and when displayed, these boxes will apear empty.

Please help asap.
Thanks in advance:)

Dec 15 '06 #1
3 3867
how do i make the tab page(any
particluar tab page) to appear invisible if there is no records
available for this particular page?

My tabbed page is "Level1Punchlist"
The controls on it is text
box-"Issue","Responsibility","CompletionDate"
Thus, you can see that if user does not have any issue, these fields
will be left blank and when displayed, these boxes will apear empty.

Please help asap.
Assuming your form is named frmMyForm, the 'Issue' text box is named
'txtIssue', the Tab control is 'tabMain' and the page you want to hide
is 'pgLevel1Punchlist', something like this in the form_OnCurrent
event:

<uncompiled code>

Private Sub frmMyForm_OnCurrent()
If (IsNull(Me.txtIssue) = True) then
Me.tabMain.pgLevel1Punchlist.Visible = False
Else
Me.tabMain.pgLevel1Punchlist.Visible = True
End If
End Sub

</uncompiled code>

If the text box txtIssue is located on the page to be hidden, just
remember you'll need some external way to fill in that value since if
it's blank, that text box won't show. Insert that control on the
containing form rather than on a tab page.

R KoC

Dec 15 '06 #2
kev
Hi King Ron,

I tried the method below but it doesnt hide the tabbed page when the
textbox issue is null.
can you please help?

p/s: sorry this seems like an old issue but i just managed to get my
hands on it as i was handling another short project.

Thanks.

King Ron wrote:
how do i make the tab page(any
particluar tab page) to appear invisible if there is no records
available for this particular page?

My tabbed page is "Level1Punchlist"
The controls on it is text
box-"Issue","Responsibility","CompletionDate"
Thus, you can see that if user does not have any issue, these fields
will be left blank and when displayed, these boxes will apear empty.

Please help asap.

Assuming your form is named frmMyForm, the 'Issue' text box is named
'txtIssue', the Tab control is 'tabMain' and the page you want to hide
is 'pgLevel1Punchlist', something like this in the form_OnCurrent
event:

<uncompiled code>

Private Sub frmMyForm_OnCurrent()
If (IsNull(Me.txtIssue) = True) then
Me.tabMain.pgLevel1Punchlist.Visible = False
Else
Me.tabMain.pgLevel1Punchlist.Visible = True
End If
End Sub

</uncompiled code>

If the text box txtIssue is located on the page to be hidden, just
remember you'll need some external way to fill in that value since if
it's blank, that text box won't show. Insert that control on the
containing form rather than on a tab page.

R KoC
Jan 12 '07 #3
kev
Hi King Ron,

I have tried d method that you suggested below but it is not working,
the tabbed page is still visible althought the textbox is empty.

Please help.

p/s: sorry for very late respond, i was assigned another project thus
this was on hold.

Thanks.

King Ron wrote:
how do i make the tab page(any
particluar tab page) to appear invisible if there is no records
available for this particular page?

My tabbed page is "Level1Punchlist"
The controls on it is text
box-"Issue","Responsibility","CompletionDate"
Thus, you can see that if user does not have any issue, these fields
will be left blank and when displayed, these boxes will apear empty.

Please help asap.

Assuming your form is named frmMyForm, the 'Issue' text box is named
'txtIssue', the Tab control is 'tabMain' and the page you want to hide
is 'pgLevel1Punchlist', something like this in the form_OnCurrent
event:

<uncompiled code>

Private Sub frmMyForm_OnCurrent()
If (IsNull(Me.txtIssue) = True) then
Me.tabMain.pgLevel1Punchlist.Visible = False
Else
Me.tabMain.pgLevel1Punchlist.Visible = True
End If
End Sub

</uncompiled code>

If the text box txtIssue is located on the page to be hidden, just
remember you'll need some external way to fill in that value since if
it's blank, that text box won't show. Insert that control on the
containing form rather than on a tab page.

R KoC
Jan 12 '07 #4

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

Similar topics

3
by: David | last post by:
I have a problem that I cannot delete components that are placed on a Tabbed page in Visual Basic.Net 2003. (OS = Windows 2000 Professional) The form uses a Tab Control with several pages. I have...
1
by: Dave | last post by:
I need to set a default Selected Item in combobox on a tabbed page which is on tabbed page #2. It works on page 1 but not page2. -- L. A. Jones
3
by: kev | last post by:
Hello, I posted a question a while ago on tabbed pages, how to set it to invisible when the text box is empty.It was answered by Rick and the code ran perfectly. However, i tried using the same...
0
NeoPa
by: NeoPa | last post by:
Originally posted by Missinglinq: The first thing to remember is that Tabbed Pages are all part of a single form; think of it as a really long form turned on its side and folded on itself. Because...
0
by: jpmcafee | last post by:
Hi guys, I would like to create 10 tabbed pages with the same checkboxes (form)in each one of them, So what I think I will do is create a tabbed form place 10 tabs accross the top...
0
by: Shane Jones | last post by:
I began my .Net training with VS .Net 2000 (version 1.0) -- on the toolbar there is a multi-tabbed control (which allows you to place differing content on each tab, and display content associated...
8
by: jackrabbithanna | last post by:
I'm using a ajax script the uses a tabbed div that fetches a remote webpage to display for each tab.when clicked. the script works fine except for one thing. The content of the page i want to...
0
by: ARC | last post by:
The new tabbed interface in access 2007, has led to one interesting problem. With a report shown in preview mode, and maximized, it just becomes a new tab. The user can click back over to the form,...
1
by: ArunDhaJ | last post by:
Hi, I'm in need of help for solving the following problem: I've a page with two div tag as follows: <div id="divNormalView" runat="server"> <asp:listbox id="listSelectedMembers"...
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?
1
by: Sonnysonu | last post by:
This is the data of csv file 1 2 3 1 2 3 1 2 3 1 2 3 2 3 2 3 3 the lengths should be different i have to store the data by column-wise with in the specific length. suppose the i have to...
0
by: Hystou | last post by:
There are some requirements for setting up RAID: 1. The motherboard and BIOS support RAID configuration. 2. The motherboard has 2 or more available SATA protocol SSD/HDD slots (including MSATA, M.2...
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
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
tracyyun
by: tracyyun | last post by:
Dear forum friends, With the development of smart home technology, a variety of wireless communication protocols have appeared on the market, such as Zigbee, Z-Wave, Wi-Fi, Bluetooth, etc. Each...
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.