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
Solved

Add records to Many-To-Many linked table

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

Free Tool: Postgres Monitoring System

A PHP and Perl based system to collect and display usage statistics from PostgreSQL databases.

One of a set of tools we are providing to everyone 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

Experts-Exchange is a great place to come for help with solutions for your database issues, and many problems are resolved within minutes of being posted.  Others take a little more time and effort and often providing a sample database is very helpf…
Phishing attempts can come in all forms, shapes and sizes. No matter how familiar you think you are with them, always remember to take extra precaution when opening an email with attachments or links.
Show developers how to use a criteria form to limit the data that appears on an Access report. It is a common requirement that users can specify the criteria for a report at runtime. The easiest way to accomplish this is using a criteria form that a…
With Microsoft Access, learn how to start a database in different ways and produce different start-up actions allowing you to use a single database to perform multiple tasks. Specify a start-up form through options: Specify an Autoexec macro: Us…

792 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