Free Lessons
Courses
Seminars
TechHelp
Fast Tips
Templates
Topic Index
Forum
ABCD
 
Home   Courses   TechHelp   Forums   Help   Contact   Merch   Join   Order   Logon  
 
Back to Access Forum    Comments List
Upload Images   @Reply   Bookmark    Link   Email   Next Unseen 
working with 3 tables
Charles B 

11 years ago
I know how to use a junction table to link two tables in a form/subform but I am getting a bit confused when I add a third table.  I have Clients who from time to time go to the hospital. I want to keep track of my Clients hospital visits so I set up 3 tables. One for Clients, one for the Hospitals and one for Patient Information. An example of the tables looks like this (this is a short version):

Clients: ClientID - Autonumber
ClientFname - short text
ClientLname - short text

Hospitals: HospitalID - Autonumber
HospitalName - short text

PatientInfo: PatientInfoID - Autonumber
AdmissionDate - date/time
PatientNumber - short text

I figure that 3 tables are necessary because each client may go to more than one hospital and some or all may visit one hospital more than once.For example, if I have a client named Joe and he went to the ER at Mercy Hospital on 1/1/2000, then a week later he went into the ER again at Mercy, then one month later he went to Baptist Hospital, I need to keep track of the 2 admissions in Mercy and the one at Baptist. It seems simple when there are only 2 tables involved. I just use a form with a subform and create a junction table to hold the PK values. I am a bit confused as to how to get and store the values of the three PK in 3 separate tables. Any help is appreciated.  If there is an example I could look at that would really help.


Reply from Alex Hedley:

In your junction table just have the three id fields. You can then have a Form with 3 combos, one for each Table.
Then in your Query join the 3 tables to the JunctionT and pull in the Fields you want.

This thread is now CLOSED. If you wish to comment, start a NEW discussion in Access Forum.
 

Next Unseen

 
New Feature: Comment Live View
 
 

The following is a paid advertisement
Computer Learning Zone is not responsible for any content shown or offers made by these ads.
 

Learn
 
Access - index
Excel - index
Word - index
Windows - index
PowerPoint - index
Photoshop - index
Visual Basic - index
ASP - index
Seminars
More...
Customers
 
Login
My Account
My Courses
Lost Password
Memberships
Student Databases
Change Email
Info
 
Latest News
New Releases
User Forums
Topic Glossary
Tips & Tricks
Search The Site
Code Vault
Collapse Menus
Help
 
Customer Support
Web Site Tour
FAQs
TechHelp
Consulting Services
About
 
Background
Testimonials
Jobs
Affiliate Program
Richard Rost
Free Lessons
Mailing List
PCResale.NET
Order
 
Video Tutorials
Handbooks
Memberships
Learning Connection
Idiot's Guide to Excel
Volume Discounts
Payment Info
Shipping
Terms of Sale
Contact
 
Contact Info
Support Policy
Mailing Address
Phone Number
Fax Number
Course Survey
Email Richard
[email protected]
Blog RSS Feed    YouTube Channel

LinkedIn
Copyright 2026 by Computer Learning Zone, Amicron, and Richard Rost. All Rights Reserved. Current Time: 5/16/2026 5:31:32 PM. PLT: 0s