Results 1 to 5 of 5
  1. #1
    athanas-jifunze is offline Novice
    Windows 7 64bit Access 2013 64bit
    Join Date
    Feb 2017
    Posts
    8

    Exclamation Can two related tables both relate with the third Table?


    I have a table called tblCity(CityID, CityName, StateName) this table is related to a table called tblState(StateID, StateName) I have the third table called tblParticipant(ParticipantID, ParticipantName, ParticipantSex, ParticipantState, ParticipantCity) Is it possible the two related tables (tblCity & tblState) both relate to tblParticipant? I want to make the ParticipantState and ParticipantCity to look up values in from the two tables above.

  2. #2
    ssanfu is offline Master of Nothing
    Windows XP Access 2010 32bit
    Join Date
    Sep 2010
    Location
    Anchorage, Alaska, USA
    Posts
    9,664
    Well, yes.
    Are the fields "CityID" and "StateID" both autonumber PK fields?
    Are the fields "ParticipantCity" and "ParticipantState" both Long Integer type fields?

  3. #3
    athanas-jifunze is offline Novice
    Windows 7 64bit Access 2013 64bit
    Join Date
    Feb 2017
    Posts
    8
    Yes, the fields "CityID" and "StateID" both are autonumber PK and the fields "ParticipantCity" and "ParticipantState" both are Long Integer type fields

  4. #4
    NTC is offline VIP
    Windows 10 Access 2013
    Join Date
    Nov 2009
    Posts
    2,392
    tblCity contains both the City & State fields. If you the developer has populated this table completely - then you don't need tblState....but if that is all set up together already - that's fine.

    Your Participant table can have the City field be a Look Up field type of the tblCity and include both City & State fields.

    Then at the Form level - when the City field is automatically going to be a combobox/selector control - and you can make it display both City & State fields during the selection process - -(you can also set it to sort by State or City if that helps) - - however once selected only the City will display. It is the key field that will be bound to the control but the City field that will display in the control. In order to make the State display you put an unbound StateField =[CityFieldName].Column(2)

  5. #5
    athanas-jifunze is offline Novice
    Windows 7 64bit Access 2013 64bit
    Join Date
    Feb 2017
    Posts
    8
    Thank you very much for your explanations. However it can be very useful if I can share with you the database and ask the areas which I am not clear. If that is fine with you how do I share the database with you. Thank you in adavance

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

Similar Threads

  1. Replies: 1
    Last Post: 06-06-2016, 06:05 PM
  2. Replies: 2
    Last Post: 08-06-2015, 12:47 AM
  3. Best way to relate these tables.
    By rosco2382 in forum Database Design
    Replies: 2
    Last Post: 03-10-2014, 03:56 PM
  4. Replies: 5
    Last Post: 12-14-2012, 04:21 PM
  5. I just DON'T know how to relate Tables - PERIOD!
    By djclntn in forum Database Design
    Replies: 6
    Last Post: 02-26-2012, 07:21 PM

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