Solved

Add records to Many-To-Many linked table

Posted on 2008-10-16
5
1,517 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
Comment Utility
Can we have a look at what you've done so far?
0
 
LVL 16

Accepted Solution

by:
Sheils earned 250 total points
Comment Utility
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
Comment Utility
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
Comment Utility
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
Comment Utility
Thank you for finding me a good example of a many-to-many relationship solution. I will study it.
0

Featured Post

Enabling OSINT in Activity Based Intelligence

Activity based intelligence (ABI) requires access to all available sources of data. Recorded Future allows analysts to observe structured data on the open, deep, and dark web.

Join & Write a Comment

Introduction The Visual Basic for Applications (VBA) language is at the heart of every application that you write. It is your key to taking Access beyond the world of wizards into a world where anything is possible. This article introduces you to…
In a multiple monitor setup, if you don't want to use AutoCenter to position your popup forms, you have a problem: where will they appear?  Sometimes you may have an additional problem: where the devil did they go?  If you last had a popup form open…
Using Microsoft Access, learn some simple rules for how to construct tables in a relational database. Split up all multi-value fields into single values: Split up fields that belong to other things into separate tables: Make sure that all record…
What’s inside an Access Desktop Database. Will look at the basic interface, Navigation Pane (Database Container), Tables, Queries, Forms, Report, Macro’s, and VBA code.

728 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

Need Help in Real-Time?

Connect with top rated Experts

12 Experts available now in Live!

Get 1:1 Help Now