473,403 Members | 2,359 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,403 software developers and data experts.

main form + 3 subforms / manual forms linking

2
I have 4 hierarchical tables and want to display it all together as a form and 3 subforms, when subform displays (and allow to add/edit) only relevant items from each superior subform.

Tables are:
Clients --> linked thru id_client --> Orders --> linked thru id_order --> Licences --> linked thru id_licence --> Regkeys

Access' Form Wizard allows only form + 2 subforms. I tried to create last subform and its link manually, but I'm not successful.

2nd subform (Orders) is linked by:

Link Child Fields: id_client
Link Master Fields: id_client

3rd subform (Licences) is linked by
Link Child Fields: id_order
Link Master Fields: [order Subform].Form![id_order]

which is generated by Access and works satisfyingly. I tried to link last subform (Regkeys) analogically as:

Link Child Fields: id_licence
Link Master Fields: [licence Subform].Form![id_licence]

but it doesn't work and all records are displayed instead of relevant.

Only solution that works is to use subform which is form with 2 subforms, but I'd like other solution.

Any advices? Thanks ahead.
--
version: MS Access 2003 Czech (so I hope to use correct terms)
Jun 21 '07 #1
2 8361
MMcCarthy
14,534 Expert Mod 8TB
As far as I know the maximum of nested subforms is two. However, try this.

Open the licences subform on its own in design view and try using the wizard to add the last subform. This should work. whether the main form will now work with 3 nested subforms I don't know.
Jun 22 '07 #2
darnel
2
Problem solved :-)

I copied and modified linking between 3rd and 4th table (as described before), but miss VB code on Current event (for Licences subform, which on Current event refreshes subordinate subform Regkeys), which should be copied and modified analogically. This code makes requery operation which ensure relevant records in last subform.

Solution you propose will probably work (I tried complete nesting: one form + one subform, where subform is form + subform again...etc), but I don't like this aesthetically ;-)

Anyway thanks for your answer, I "entertained" myself with this problem all yesterday without solution.
--
Last note in part "Create a form with two subforms" http://office.microsoft.com/en-gb/ac...CH063650401033
Jun 22 '07 #3

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

Similar topics

0
by: Arnold | last post by:
Hi there, I have a form to organize bottles in mind, but am unsure if it will work. Here's some background info: Mainform = frmProduct, which contains fields for pricing, status, etc. of...
9
by: William Wisnieski | last post by:
Hello Everyone, Access 2000 I have a main form with a continuous subform. On the main form I have a text field called . It gets populated based on what the user selects in a field on the...
4
by: Mike MacSween | last post by:
It's a form, with (so far) 4 tab pages on it, each of which holds 2/3/4 subforms. (I like tabbed forms by the way - do we all?) Basically the subforms are different ways of looking at the...
4
by: Dave Boyd | last post by:
Hi, I have two very similar forms each with a subform. The main form gets a few fields from the user and passes this back to a query that the subform is bound to. The requery is done when the...
8
by: Zlatko Matić | last post by:
Hello. How can I synchronize subforms content with current record in master form, if both form and subform are based on DAO code ? I assigned DAO recordset to forms by using QueryDef, on Load...
2
by: Reginald Bal | last post by:
Hello, I created a main form with 2 subforms. In an attempt to move to the next record (or new record) on the main form I get the error " Method 'requery' of object '_Subform' failed". The...
2
by: SREDWORB | last post by:
Hello, Try to explain this as best as I can. I have a main form with several cmd buttons, (Not interested in subforms for this project) that opens popup forms. Example: Main form frmPerson,...
2
by: rlamber | last post by:
Hello, I have 2 subforms in a Main form, one links fine, the other doesn't. I am trying to link them both to a "tracking ID" on the main form. The Tracking ID is a text field that is a combination...
1
by: c0l0nelFlagg | last post by:
I need to display a main form with 48 identical subforms. 6 columns with 8 rows. I set up a separate query for each subform, identical in structure and underlying data except the criteria in...
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: emmanuelkatto | last post by:
Hi All, I am Emmanuel katto from Uganda. I want to ask what challenges you've faced while migrating a website to cloud. Please let me know. Thanks! Emmanuel
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
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
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...

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.