473,842 Members | 1,919 Online
Bytes | Software Development & Data Engineering Community
+ Post

Home Posts Topics Members FAQ

On child form create bound list box to show related records from parent form

LeighW
73 New Member
Hi all,

I have two tables with a many-to-many relationship which is causing many problems. My parent and child forms are linked via a junction table. I want to make it possible to create a read-only version of the child table so that you don't have to link to it from the parent table.

A form linking the two together has been created with a combobox where you can pick and choose which records relate to each other.

I'd like on the child form there to be a list box or combo box which shows the records from the parent table linked to that record from what is picked within the comboboxes of the "junction form".

In essense it would mean that people reading the child form would know which names the record is based on if they didn't want to go via the parent form to read it.

Any help would be great,

Leigh
Jul 4 '12
20 34975
zmbd
5,501 Recognized Expert Moderator Expert
Thnx for clearing up form 4...

The In-Laws... help FIL lay 3yards concrete... long, hot day... but you know, he's helped us out... and a 65ish old man doesn't need to be doing that kind of work in the heat. However, I think I've come down with something so I may be just lurking for the next few days.... I don't do the sick thing very well :(

-z
Jul 10 '12 #11
ariful alam
185 New Member
If i create a Form named Form3 using a query value of Table_1, Table_2 and Table_3, the Form3 will be a parent-child form or a linked form of two form. in both cases, in child form or in linked form multiple data can be added for the parent form. but it is not possible to add multiple data in parent form because of every child/linked form data.

do you both agree?
Jul 10 '12 #12
zmbd
5,501 Recognized Expert Moderator Expert
Ariful... I'm not sure where you're going with this train of thought as on the surface it does not appear to relate to OP question. (Could be that I'm just under the weather too)

From my understanding in the OP, LeighW only needs a way to show [Title].value as it relates to the records shown on frm_two.

IMHO, w/o having a copy of the DB w/ test data, as I suggested in post 4 and 6; either a form/subform or the information in NeoPa's tutorial should provide the answer to the question. If not, I suspect LeighW will be back (and I hope will tell us either way)

I'm sure that there different ways to restructure LW's DB; however, W/O the DB I wouldn't even want to start such an adventure :)

-z
Jul 10 '12 #13
ariful alam
185 New Member
@ZMBD, in post#3 LeighW wrote,

"I use Form 3 to create new records which then also appear in Form 2. Form 3 lets me show the records linked between Table 1 and Table 2."

that's why i post the above before you. What you suggested NeoPa's tutorial is solved by VBA code. But my problem is I don't like to do VBA code in MS Access database. I try anything in MS Access using Expression Builder or Macro. So, that's why I am finding a way that may not need to add VBA code directly.

Thanks.
Jul 10 '12 #14
LeighW
73 New Member
Looking at NeoPa's method it looks a bit too complicated for what I need though it does seem interesting in how it works.

Z - I hope you get better (at least you had sunshine)! and cheers for the help.

Ariful - That's correct thanks for the help so far.

Edit - Also I'd give the DB but it would take an awful lot of time to change it to non-sensitive
Jul 10 '12 #15
ariful alam
185 New Member
@LeighW,

did you saw post#12 here in serial by me? do you need that in your work? if yes, is that in that way is described there or any other thing?

is it possible to provide a copy of your work without data here?

thanks.
Jul 10 '12 #16
zmbd
5,501 Recognized Expert Moderator Expert
Ariful... I'm sorry, I still do not follow how your suggestion will answer the OP.

LeighW... NeoPa's tutorial does appear to be staggering upon first read; however, I assure you that it is much easier to do than to write :)

Both: If your are of the group that likes to avoid VBA as much as possible then the link to the thread between Rabbit and Myself (#6) about the form/subform is as Ariful suggested one such solution.

In anycase, I hesitate to offer any specific solution to the question as I do not have a clear understanding of the database. However, as there is a common field [Title] you could create something along the lines of the following where I have a single parent form and three child forms. Selecting from the list box in the upper left corner causes an update against the three subforms as they are linked to the value of the control




-z
Attached Images
File Type: jpg orderstart.jpg (38.8 KB, 1205 views)
Jul 10 '12 #17
ariful alam
185 New Member
@zmbd,

what u did in your attached image is easy to do using query of the tables which are taking the list/combo box value as parameter. with every selection of list/combo box it can be done by macro action "requery" in the list/combo box's "after update" event. is it right?
Jul 10 '12 #18
zmbd
5,501 Recognized Expert Moderator Expert
There is no code, macro nor VBA, driving the subform updates.

The three subforms are linked in the properties...
for the subform showing the items requested:



Just noticed that "List11" this is very old database... now days I would have had something like. z_lst_labid for the name for the master field.
-z
Attached Images
File Type: jpg subform_request.jpg (29.6 KB, 1179 views)
Jul 10 '12 #19
ariful alam
185 New Member
@zmbd,

a BIG BIG & BIG thanks.

It may be done by the wizard when we add a subform. Is it?
Jul 10 '12 #20

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

Similar topics

4
2647
by: news.online.no | last post by:
In a query, I need too be able to show if a parent record has a child record. Using the query in a combo box too select record in a form. Thanks :)
25
10286
by: Lyn | last post by:
Hi, I am working on a genealogy form. The only table (so far) lists everybody in the family, one record per person. Each record has an autonum ID. The parent form (frmMainForm) displays the data in each record, which includes the ID of the father and the mother (who also have records in the table). One record per form. I have a Tab Control in the form, and in one of the tabs I have a subform (sfmSiblings) in which I wish to list...
0
1391
by: Wolfgang Kreuzer | last post by:
Hi, I am starting to migrate an Access 2.0 application to Access 2000 (I know it's not the latest version, but ist supported in our company). I found some funny behaviours where I could not find a solution in google groups. I retrieve data from sql server (2000) and created an access project. Form is bound to a view, in the form header there are two filter
2
12601
by: developer | last post by:
I have a form with a menu on the top. This menu show another form. I want to open this second form maximized inside the parent form just below the menu of the parent form. (Like Microsoft Word). How do i do that ? Thanks
2
1476
by: Mike L | last post by:
The child form can be dragged out of the Parent form. I set the child form to IsMdiContainer = False and the Parent Form IsMdiContainer = True. I also coded in the Parent Form on load, Dim f As New frmEntryForm f.MdiParent = Me What am I missing? The child form appears not to be attached to the parent form.
3
1621
by: cbrown | last post by:
I have two forms Main & Child. Main has several readonly properties that I would like to access from the child form. How do I reference the MDI-Parent form MAIN and use those properties.
0
1737
by: kolalakitty | last post by:
Hopefully someone here can help me/point me in the right direction. I've found tons of references towards making relations, creating rows, saving said rows, using datagrids, databinding objects, and etc in regards to Windows Forms, C#, and Visual Studio .Net 2003. I seem to have run into a bit of a problem however. I'm not using datagrids to show related data, my users wouldn't have any idea how to use them, and they want to see all of...
2
3027
by: dynamictiger | last post by:
I am building a wizard and have an issue with one sub form. Whilst all others are about 5 fields tall this one is 15 fields. My choices are either to resize the parent form ridiculously large for the other forms or resize the parent form on loading this subform. I have tried the following: Me.Parent.Form.Section(acDetail).Height = 1.4 * Me.Parent.Form.Section(acDetail).Height 'Me.Parent.Form.Section(acDetail).Repaint
14
3764
WyvsEyeView
by: WyvsEyeView | last post by:
On my form frmTopics (bound to table tblTopics), I've added a Copy button that copies the current topic record to create a new, identical one...simple enough. However, each topic record can have 1+ related records in tblTopicAttributes (a record for each attribute associated with the topic). So, I also want the copy action to create new and identical related records in tblTopicAttributes for the newly-created tblTopics record. I can do this with...
1
2458
Jerry Maiapu
by: Jerry Maiapu | last post by:
Hi Please help. How can I delete i single record in a datsheet subform from main form using a delete button on the parent form.? i will be more grateful for your help... jm
0
9870
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, people are often confused as to whether an ONU can Work As a Router. In this blog post, we’ll explore What is ONU, What Is Router, ONU & Router’s main usage, and What is the difference between ONU and Router. Let’s take a closer look ! Part I. Meaning of...
0
9715
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 effortlessly switch the default language on Windows 10 without reinstalling. I'll walk you through it. First, let's disable language synchronization. With a Microsoft account, language settings sync across devices. To prevent any complications,...
0
10610
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 tapestry of website design and digital marketing. It's not merely about having a website; it's about crafting an immersive digital experience that captivates audiences and drives business growth. The Art of Business Website Design Your website is...
1
10670
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 Update option using the Control Panel or Settings app; it automatically checks for updates and installs any it finds, whether you like it or not. For most users, this new feature is actually very convenient. If you want to control the update process,...
0
9451
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, and deployment—without human intervention. Imagine an AI that can take a project description, break it down, write the code, debug it, and then launch it, all on its own.... Now, this would greatly impact the work of software developers. The idea...
1
7854
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 presenter, Adolph Dupré who will be discussing some powerful techniques for using class modules. He will explain when you may want to use classes instead of User Defined Types (UDT). For example, to manage the data in unbound forms. Adolph will...
0
7030
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 then checking html paragraph one by one. At the time of converting from word file to html my equations which are in the word document file was convert into image. Globals.ThisAddIn.Application.ActiveDocument.Select();...
0
5882
by: adsilva | last post by:
A Windows Forms form does not have the event Unload, like VB6. What one acts like?
2
4087
muto222
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.