?
Solved

Add records to Many-To-Many linked table

Posted on 2008-10-16
5
Medium Priority
?
1,526 Views
Last Modified: 2013-11-28
I am creating an Access 2007 solution to enter information about Inventors and Patents. One Inventor can have multiple Patents. One Patent can belong to multiple Inventors.

I have set up the many-to-many relationship using link tables.
Inventor table --> InventorID, InventorName fields
Patent table --> PatentID, PatentTitle, FilingDate field
lkInventorPatent --> InventorID, PatentID and pkInvPat(autonum) fields

I need a form for the user to enter Patent information. They need to be able to choose the Inventor(s) that go along with the Patent.

I know the new records need to go into the lkInventorPatent table. I have been trying for two days to make this happen. (This is my first Access assignment ever) I have put a subform on the Patent form with  fields from the lkInventorPtent table.  I have tried attaching VBA code to events to add records using selections from a listbox on the form. I am missing something really simple here, aren't I?

Can someone please help me with baby steps or a small example DB attachment? This assignment was supposed to take less than a week and I haven't gotten to the Reports yet.  :-O

0
Comment
Question by:s_khan
[X]
Welcome to Experts Exchange

Add your voice to the tech community where 5M+ people just like you are talking about what matters.

  • Help others & share knowledge
  • Earn cash & points
  • Learn & ask questions
  • 2
  • 2
5 Comments
 
LVL 10

Expert Comment

by:calpurnia
ID: 22736888
Can we have a look at what you've done so far?
0
 
LVL 16

Accepted Solution

by:
Sheils earned 750 total points
ID: 22738941
Have a look at the example. You may be able to structure you form on this model. There is a small db you can download


http://www.databasedev.co.uk/many_to_many_example.html
0
 
LVL 10

Expert Comment

by:calpurnia
ID: 22739671
You said above that this is your assignment, so I don't think it would be right for someone else to do too much of it for you. But if you post your existing database with the tables and forms you've created so far, I'll be happy to take a look and give you a pointer as to what's going wrong.
0
 

Author Comment

by:s_khan
ID: 22743976
When I spoke of an assignment, I meant I was working on it at work, not for a school assignment.  :-)

I downloaded the example file and will look at that. It looks like a good many-to-many setup.

I wish I could just post the database I had created so far. Unfortunately, it is for a client.  :-(  I just keep thinking I was missing something so simple to be able to add InventorID and PatentIDs to the link table by somehow allowing the user to choose  InventorNames from the Inventor table.

I am not certain how to do Points here. Since I still need to understand from a personal standpoint, I guess it's fair to close this out to sb9 for pointing me toward an example.

Thank you for your offers of help and to look at what I had created.
0
 

Author Closing Comment

by:s_khan
ID: 31506936
Thank you for finding me a good example of a many-to-many relationship solution. I will study it.
0

Featured Post

Free Tool: Path Explorer

An intuitive utility to help find the CSS path to UI elements on a webpage. These paths are used frequently in a variety of front-end development and QA automation tasks.

One of a set of tools we're offering as a way of saying thank you for being a part of the community.

Question has a verified solution.

If you are experiencing a similar issue, please ask a related question

As tax season makes its return, so does the increase in cyber crime and tax refund phishing that comes with it
Preparing an email is something we should all take special care with – especially when the email is for somebody you may not know very well. The pressures of everyday working life stacked with a hectic office environment can make this a real challen…
Get people started with the utilization of class modules. Class modules can be a powerful tool in Microsoft Access. They allow you to create self-contained objects that encapsulate functionality. They can easily hide the complexity of a process from…
Learn how to number pages in an Access report over each group. Activate two pass printing by referencing the pages property: Add code to the Page Footers OnFormat event to capture the pages as there occur for each group. Use the pages property to …
Suggested Courses

752 members asked questions and received personalized solutions in the past 7 days.

Join the community of 500,000 technology professionals and ask your questions.

Join & Ask a Question