473,513 Members | 2,624 Online
Bytes | Software Development & Data Engineering Community
+ Post

Home Posts Topics Members FAQ

Changing visibility of textboxes and labels in runtime in ms access?

99 New Member
On a subform I have two textboxes and 2 labels of which I would need to change visibility on click of a label on the mainform.I do not know where to do this as the textboxes in the main form are not identified on the subform and vice versa.Can someone help me out?
Mar 3 '12 #1
7 3042
hjozinovic
167 New Member
hi HiGu,
Here is how you refer to subforms and controls on it. Let's assume:
Subform name: "sfSubForm"
Label on the subform: "lblLabel"
Your code to hide label on the subform should be:
Expand|Select|Wrap|Line Numbers
  1. Me!sfSubForm.Form!lblLabel.Visible = False
Change False to True if you want to show the label.
Mar 3 '12 #2
NeoPa
32,557 Recognized Expert Moderator MVP
Referring to Items on a Sub-Form should help with that HiGu.
Mar 3 '12 #3
HiGu
99 New Member
hey,thanks both of you.This seems to be working fine.
Mar 5 '12 #4
HiGu
99 New Member
Hi hjozinovic, your code worked wel while changing value of a textbox but not for changing captions.The one that worked for captions was the following that is referred in NeoPa's post.
Expand|Select|Wrap|Line Numbers
  1. Forms("frmWOMAINMENU").[frmWOMAINSUBMENU].Form.[lblhrs].Caption = "hrs"
  2.  
But I could not change controlsource of some textboxes on the same subform using the above methods.
Mar 5 '12 #5
NeoPa
32,557 Recognized Expert Moderator MVP
Yes. It should work the same way. If you have a problem though, you need to post it (properly - not like this) in a new thread with the associated details included.
Mar 5 '12 #6
HiGu
99 New Member
I have just started a new thread on the same.You may delete the above posts {Since deleted -NeoPa} as they make no sense but I'll be grateful if you answer my new thread.
Mar 6 '12 #7
NeoPa
32,557 Recognized Expert Moderator MVP
Posts deleted HiGu, but if you post the link to the (specific) new question in here then I can look at it more directly for you. It may not be something I can help with butI can at least look.
Mar 6 '12 #8

Sign in to post your reply or Sign up for a free account.

Similar topics

0
1333
by: Christian Schuhegger | last post by:
Hi, I remember that I've seen some time ago (perhaps a year or so) a project on freshmeat where a guy hacked a postgres c-interface library (i guess it was libpq / or perhaps he just used the...
0
1313
by: Weby | last post by:
Hi, I've searched everywhere, but i've not found anything to make my application compatible with Access 2k Runtime. In fact, it works good for the first report i display. My application is...
16
3979
by: MLH | last post by:
I have created an A97 runtime distribution for the first time in my life this morning. I had precious little time to do it and was unable to create the distributable installation fileset with the...
1
3178
by: Rohan | last post by:
Hi There, Is it possible to rotate or resize pictureboxes, labels, textboxes at runtime? And I even wanted to make textbox and label controls Transperent ?
7
3044
by: ditch | last post by:
I am hoping somebody can help me with this small problem, I have created a workgroup file and it works fine with people who have the full version of access 2002 i.e it prompts them to enter username...
1
1267
by: jyothi1105 | last post by:
Hi, In my projext i have to add textboxes accroding to the value given in a textbox. I want to allign them properly as a row and with labels exactly matching with the textboxes. Iam using asp.net...
1
2103
by: jyothi1105 | last post by:
Hi, I want to add textboxes and labels at runtime. Controls are to be added according to the value entered in textbox. txtfamily is a textbox,in which user gives the no of familymembers. i want...
0
1435
by: ncsthbell | last post by:
Hello, We are upgrading to MS2007 from MS2000 and plan to have the users run using "Runtime Access". I have noticed that when running under Runtime, there is no option to allow you to 'delete' a...
1
5560
by: ncsthbell | last post by:
I have a dilemia, I have an application that I am having to make some changes to in order for it to run sucessfully under Runtime 2007. We are currently working on upgrading from 2000 to 2007. The...
1
2541
by: ncsthbell | last post by:
I created a database using full blown access 2007. I have put it out for users to grab and test using Runtime Access 2007. They have entered data and now I need to go back into a table and change a...
0
7158
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
7380
Oralloy
by: Oralloy | last post by:
Hello folks, I am unable to find appropriate documentation on the type promotion of bit-fields when using the generalised comparison operator "<=>". The problem is that using the GNU compilers,...
0
7535
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
7523
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
3232
by: TSSRALBI | last post by:
Hello I'm a network technician in training and I need your help. I am currently learning how to create and manage the different types of VPNs and I have a question about LAN-to-LAN VPNs. The...
0
3221
by: adsilva | last post by:
A Windows Forms form does not have the event Unload, like VB6. What one acts like?
0
1592
by: 6302768590 | last post by:
Hai team i want code for transfer the data from one system to another through IP address by using C# our system has to for every 5mins then we have to update the data what the data is updated ...
1
798
muto222
by: muto222 | last post by:
How can i add a mobile payment intergratation into php mysql website.
0
455
bsmnconsultancy
by: bsmnconsultancy | last post by:
In today's digital era, a well-designed website is crucial for businesses looking to succeed. Whether you're a small business owner or a large corporation in Toronto, having a strong online presence...

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.