473,473 Members | 1,982 Online
Bytes | Software Development & Data Engineering Community
Create Post

Home Posts Topics Members FAQ

Refer to subform2 while on subform1... syntax??

1 New Member
Hello...

I have a form (main form) with a tabcontrol that houses a series of subforms.

What I'm trying to do: When I tick a box on "subform 1" (it has spaces in its name) I need controls on "subform 2" (again, has spaces) to become visible.

I have been trying to get my VBA syntax right and it's just not working. I've found a site (http://www.mvps.org/access/forms/frm0031.htm) that would seem to show me the way, but I've tried too many different versions and I can't get it right.

Help! Can anyone give me a sample of this syntax.

Thanks!
Jan 22 '07 #1
2 1743
dima69
181 Recognized Expert New Member
Hello...

I have a form (main form) with a tabcontrol that houses a series of subforms.

What I'm trying to do: When I tick a box on "subform 1" (it has spaces in its name) I need controls on "subform 2" (again, has spaces) to become visible.

I have been trying to get my VBA syntax right and it's just not working. I've found a site (http://www.mvps.org/access/forms/frm0031.htm) that would seem to show me the way, but I've tried too many different versions and I can't get it right.

Help! Can anyone give me a sample of this syntax.

Thanks!
Have you tried using
Expand|Select|Wrap|Line Numbers
  1. Forms("Main Form")![subform 2]![control 1].visible = True 
Jan 22 '07 #2
nico5038
3,080 Recognized Expert Specialist
Try:

Me.[subform 2].form.[control 1].visible = True

Nic;o)
Jan 22 '07 #3

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

Similar topics

3
by: Nick | last post by:
I have a form that has several check boxes defaulting to checked. When the form loads, I have a cursor looping through a table that stores the name of the check boxes that need to be unchecked. ...
5
by: juglesh | last post by:
"$string = isset($xyz) ? $xyz : "something else";" Hello, someone gave code like this in another thread. I understand (by inference) what it does, but have not found any documentation on this...
1
by: MP | last post by:
I have a main form that has a subform which also has a subform: the main form is the first subform is the second subform is When I click on the button »AddNewSubSubRecord« (add a new record...
2
by: Dean Slindee | last post by:
Is there any way to refer to the .text property of a status bar panel thru object syntax, like below (the inner "for" does not work): Public Function FormStatusBarPaint(ByVal frm As Form)...
4
by: Wout | last post by:
Hello there, i have a main form to define products in. i have a subform1 to fill in the related materials i have a subform2 to fill in the machines to process the materials subform1 is...
7
by: Ryan | last post by:
I'm wanting to find the value of TableID on the current record displayed on my form. I cannot seem to find any method within the TableAdapter class to find this. An example I've found MS uses a...
0
by: Larry Lard | last post by:
This came out of a thread explaining to "BK" about error BC42025 ("Access of shared member through an instance; qualifying expression will not be evaluated"); Frans Clasener then came up with...
4
by: john | last post by:
I have a bound textfield in my form. In the beforeupdate event of that field I want to refer to that field's value. What's the easiest way to refer to that field's value? st = MyFieldName works...
1
by: Coolboy55 | last post by:
I know there are other ways to refer to a form, but I'm just curious about this one: if you have a form with spaces in its name, how do you refer to it using the following syntax: Form_Form...
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...
1
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,...
1
isladogs
by: isladogs | last post by:
The next Access Europe User Group meeting will be on Wednesday 1 May 2024 starting at 18:00 UK time (6PM UTC+1) and finishing by 19:30 (7.30PM). In this session, we are pleased to welcome a new...
0
by: conductexam | last post by:
I have .net C# application in which I am extracting data from word file and save it in database particularly. To store word all data as it is I am converting the whole word file firstly in HTML and...
0
muto222
php
by: muto222 | last post by:
How can i add a mobile payment intergratation into php mysql website.

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.