troubleshooting Question

How to add a new record in a many to many link table

Avatar of rltomalin
rltomalinFlag for United Kingdom of Great Britain and Northern Ireland asked on
Microsoft Access
11 Comments1 Solution280 ViewsLast Modified:
I wonder if someone could point me in the right direction.  I am just starting out creating what should be a relatively simple database.  I have got stuck on a particular aspect.  I have done some ACCESS work before, but never worked with a many-to-many relationship before.  Here's the question:

I have 3 tables (journeys, passengers, and jrnypasnglnk).
I have a query that includes all the fields from all 3 tables.
I have a form that displays a journey, with a subform that lists all the passengers on that journey.

On that form I want a button that says "add passenger".  I want that to bring up a pop-up with a combo box that lists all the passengers (ideally with current passengers omitted).  Then the user selects a passenger and clicks an OK button.  That then creates the new entry in the link table and closes the popup.  The new journey appears in the list on the main form.

I can't seem to figure out which query/table to use for the popup and how to append to the link table.

I am using the Access wizards at the moment (I prefer that if possible), but I have done some VB work in the past if that is required.

Hope someone can help me out.



Our community of experts have been thoroughly vetted for their expertise and industry experience.

Join our community to see this answer!
Unlock 1 Answer and 11 Comments.
Start Free Trial
Learn from the best

Network and collaborate with thousands of CTOs, CISOs, and IT Pros rooting for you and your success.

Andrew Hancock - VMware vExpert
See if this solution works for you by signing up for a 7 day free trial.
Unlock 1 Answer and 11 Comments.
Try for 7 days

”The time we save is the biggest benefit of E-E to our team. What could take multiple guys 2 hours or more each to find is accessed in around 15 minutes on Experts Exchange.

-Mike Kapnisakis, Warner Bros