Results 1 to 6 of 6
  1. #1
    Kat-ness is offline Novice
    Windows XP Access 2010 32bit
    Join Date
    Dec 2012
    Posts
    26

    Lookup field in a many to many relationship

    I have a many to many relationship between two tables in my database I'm creating.

    Application
    App #, pk

    Contact
    Contact ID, pk



    Contact type
    Contact Type ID, pk
    App #, fk
    contact Id, fk

    I am using Contact Type as the junction table and also have fields in the contact type table that will be relevant to both application and contact table (thanks to suggestions from this forum. Thanks Jane.). As in...one application may have multiple contacts (that could appear on a different contact), and the Contact type for one contact may be different on one application from another for the same individual.

    Firstly, have I set the relationships up correctly for this? And secondly, how do I set up my lookup fields (or should I avoid that altogether?). On my form I want to have multiple tabs and I want there to be a separate contacts tab. Since there will be duplicates I'd like to have access automatically look up the information for my contact tab from the contact table but I've heard and seen in places that lookup fields can cause problems later on.

    Am I better off just adding the records one at a time, even if there are duplicates? or is there some other way to do this? Which table would I put the lookup field in in order to pull the data from the contact table to the contact tab?

  2. #2
    alansidman's Avatar
    alansidman is offline Indifferent
    Windows 7 32bit Access 2010 32bit
    Join Date
    Apr 2010
    Location
    Steamboat Springs
    Posts
    2,536
    You don't want to have your lookups in your table. Create combo boxes in your forms

    http://access.mvps.org/access/lookupfields.htm

    Alan

  3. #3
    Kat-ness is offline Novice
    Windows XP Access 2010 32bit
    Join Date
    Dec 2012
    Posts
    26
    Thanks Alansidman.

    Is it possible to set up combo boxes on my form when the table isn't using combo boxes? Can you please explain how this would work a little further or do you know of a link that will?

  4. #4
    orange's Avatar
    orange is offline Moderator
    Windows XP Access 2003
    Join Date
    Sep 2009
    Location
    Ottawa, Ontario, Canada; West Palm Beach FL
    Posts
    16,848

  5. #5
    Kat-ness is offline Novice
    Windows XP Access 2010 32bit
    Join Date
    Dec 2012
    Posts
    26
    Thanks Orange!

  6. #6
    orange's Avatar
    orange is offline Moderator
    Windows XP Access 2003
    Join Date
    Sep 2009
    Location
    Ottawa, Ontario, Canada; West Palm Beach FL
    Posts
    16,848

Please reply to this thread with any new information or opinions.

Similar Threads

  1. Join Statement with two field relationship
    By dhogan444 in forum Queries
    Replies: 2
    Last Post: 08-09-2012, 08:30 AM
  2. Replies: 1
    Last Post: 02-29-2012, 10:13 PM
  3. Replies: 2
    Last Post: 01-09-2012, 02:40 PM
  4. Use a lookup field to influence values in another field
    By nathanrt in forum Database Design
    Replies: 3
    Last Post: 01-13-2011, 03:40 PM
  5. one to many relationship and field adding
    By cr1973 in forum Queries
    Replies: 0
    Last Post: 08-27-2009, 07:12 AM

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •  
Other Forums: Microsoft Office Forums