Solved

Add records to Many-To-Many linked table

Posted on 2008-10-16
5
1,524 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 250 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

Technology Partners: We Want Your Opinion!

We value your feedback.

Take our survey and automatically be enter to win anyone of the following:
Yeti Cooler, Amazon eGift Card, and Movie eGift Card!

Question has a verified solution.

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

Did you know that more than 4 billion data records have been recorded as lost or stolen since 2013? It was a staggering number brought to our attention during last week’s ManageEngine webinar, where attendees received a comprehensive look at the ma…
Traditionally, the method to display pictures in Access forms and reports is to first download them from URLs to a folder, record the path in a table and then let the form or report pull the pictures from that folder. But why not let Windows retr…
Familiarize people with the process of retrieving data from SQL Server using an Access pass-thru query. Microsoft Access is a very powerful client/server development tool. One of the ways that you can retrieve data from a SQL Server is by using a pa…
Add bar graphs to Access queries using Unicode block characters. Graphs appear on every record in the color you want. Give life to numbers. Hopes this gives you ideas on visualizing your data in new ways ~ Create a calculated field in a query: …

687 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