A real struggle (1 Viewer)

Dmitri

New member
Local time
Today, 21:24
Joined
Jul 11, 2019
Messages
4
This is so simple for experienced folks, but as a newcommer to ms access I just cannot fathom how to do this. I have 2 tables. One is "parents" and the other "tutors". The PK is ID / autonumber in both tables.

Now this is where I bang my head against the wall: On the parent table, I need a subrecord which contains the tutor that has been booked by the parent.

For example: Parent name is Diane
There are 4 tutors: Tania, Jenny, Rose, Jacky

If the parent (Diane) chooses Rose, then I want Rose's name and info in the subrecord. Somehow, what is happening is that all the parents show Rose as the tutor.

How on Earth do I stop banging my head against the wall:banghead:
 

arnelgp

..forever waiting... waiting for jellybean!
Local time
Tomorrow, 02:24
Joined
May 7, 2009
Messages
19,229
you need a junction table (table in between parent and tutor), say tblParentTutor with
fields:

ParentID (long the ID of the parent)
TutorID (long the ID of tutor)

add the parent ID and tutor to this table.

now create a query, drag the parent first, then the tblParentTutor, lastly the tutor table.
join the ID of parent table to the ParentID of the junction table.
right click on the connecting line and choose option (2).
drag the TutorID from junction table to Tutor table.
right click on the connecting line and choose option (2).
select which field you want to show in the query.
 

Dmitri

New member
Local time
Today, 21:24
Joined
Jul 11, 2019
Messages
4
Thanks, I will follow your advice and report back. It takes me a few times to get right in databases. Teaching myself a new "career" at 53 - not easy :):D
 

arnelgp

..forever waiting... waiting for jellybean!
Local time
Tomorrow, 02:24
Joined
May 7, 2009
Messages
19,229
here is a sample you might want to study.
 

Attachments

  • ParentTutor.zip
    31.1 KB · Views: 61

Dmitri

New member
Local time
Today, 21:24
Joined
Jul 11, 2019
Messages
4
Thanks. I will work through your example and get back to you.
 

Users who are viewing this thread

Top Bottom