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

never can get this right....going from one inbedded subform to another for a value

I am in a subform on a subform and need to get to a subform on a
subform...LOL
on 2 tabs.

so I have

FORM MAIN

sub1 sub3
subs2 subs4
val1 val2

so to get a value on subs2 for a calc value in subs4
is the correct way in subs4
me.parent.parent which is on form main

me.parent.parent.sub1.form.subs2.form.val1

I can't get this to work and I know its something to do with my
reference to form.
doesn't the form always go after the formname?

thanks big time for help

Jerry

Nov 13 '05 #1
3 1218
Is the form bound? if so, it might be easier to retrieve the value from
the underlying table rather than the UI...

However: as far as I can tell, the reference chain you quote above
should work: one thing to verify is that in your example 'sub1' and
'subs2' are the names of the .Subform controls on the parent form, not
the names of the .Form objects that are the .Subform controls data
sources...

King Ron of Chi

Nov 13 '05 #2
sparks wrote in message <tf********************************@4ax.com> :
I am in a subform on a subform and need to get to a subform on a
subform...LOL
on 2 tabs.

so I have

FORM MAIN

sub1 sub3
subs2 subs4
val1 val2

so to get a value on subs2 for a calc value in subs4
is the correct way in subs4
me.parent.parent which is on form main

me.parent.parent.sub1.form.subs2.form.val1

I can't get this to work and I know its something to do with my
reference to form.
doesn't the form always go after the formname?

thanks big time for help

Jerry


Fortunately, I haven't had the need for such linking;-)

Keep in mind that what is used when referencing, is the
subform control name, which may differ from the form name
as viewed in the database window. It might be that, which
is causing this.

You might want to try the following:
One way of obtaining the correct reference, is by invoking
the expression builder from the controlsource of one of
the controls (val2?), then doubleclick through forms,
loaded forms, main form, sub1, subs2, val1, which
should provide you with the correct reference.

--
Roy-Vidar

Nov 13 '05 #3
did you read Keri Hardwick's article at www.mvps.org/access about
referencing controls on forms and subforms? If you follow that you
should be able to work it out...

Nov 13 '05 #4

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

Similar topics

5
by: Bob | last post by:
Hi Everybody I have a form called frmListBox that is connected to a table tblListBox. This is opened from a form called "frmInvoiceOrder" which has a subform called "zfrmInvoiceOrder" and...
3
by: Nicolae Fieraru | last post by:
Hi All, I have a problem and I can't figure out how to solve it. My database has three tables: tblCustomers, with CustomerId and CustomerName tblProducts, with ProductId and ProductCode...
3
by: Maria | last post by:
Is there another way to delete the current record in a subform from the main form, another subform or a sub-subform other than setting focus on a field in the subform and using run command...
18
by: Darryl Kerkeslager | last post by:
I don't do much with subforms - in fact I've deliberately avoided them - but .... I have a tab control that will contain several subforms, each bound to a separate table, and each table/subform...
5
by: tdmailbox | last post by:
I have a form with a child form. In the child form there is a list of names that can grow quite large. On the parent form I want to display the first name from the child form. I set up a test...
3
by: matthewemiclea | last post by:
So I think this may be a stretch, but I have a subform that is displayed on a main form. The subform is based on a query that brings records from a table(It does not bring all fields, but the main...
9
by: PC Datasheet | last post by:
I'm stuck on something that seems should be easy and I need some help. My main form has an option group with five options. My subform chooses from different lists depending on which option is...
9
by: Ecohouse | last post by:
I have a main form with two subforms. The first subform has the child link to the main form identity key. subform1 - Master Field: SK Child Field: TrainingMasterSK The second subform has a...
19
by: hexagram | last post by:
Hi guys good day, can anybody help for my problem The Scenario is A Listbox (ID) - Multiple Select - everytime i choose in the list box the following outbound textbutton and subform will...
0
by: taylorcarr | last post by:
A Canon printer is a smart device known for being advanced, efficient, and reliable. It is designed for home, office, and hybrid workspace use and can also be used for a variety of purposes. However,...
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
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
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...

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.