Results 1 to 3 of 3
  1. #1
    Join Date
    Aug 2003
    Location
    UK
    Posts
    78

    Talking Unanswered: One or two tables..... that is the question.

    I am making a form to display records from many different tables.
    The requrement :
    I have a contacts table, a contact can make a booking and then a contact can be included in that booking as a passenger, so i want to show:
    BookingID from bookings table
    Contact Name from contacts table
    people travelling on a booking from bookingdetails table
    BookingDetailID from BookingDetail table
    From from schedules table
    To from schedules table
    Contact name from contacts table

    My question is;
    do I have to have two contacts tables in the database or can I use just one? and if so how?
    the light is on, someone is home, but they dont know they are. HELLO!

  2. #2
    Join Date
    Jul 2002
    Location
    Romania
    Posts
    122
    In the relationships window, add tblBookings once and tblContacts twice.
    Relate tblBookings with tblContacts on BookedBy = ContactID
    Relate tblBookings with tblContacts_1 on Passenger = ContactID

    Include tblContacts twice in all queries that have to display both BookedBy and Passenger.

    Good luck

  3. #3
    Join Date
    Aug 2003
    Location
    UK
    Posts
    78
    Originally posted by DannyY
    In the relationships window, add tblBookings once and tblContacts twice.
    Relate tblBookings with tblContacts on BookedBy = ContactID
    Relate tblBookings with tblContacts_1 on Passenger = ContactID

    Include tblContacts twice in all queries that have to display both BookedBy and Passenger.

    Good luck
    I'll give it a go thanks dannyY
    the light is on, someone is home, but they dont know they are. HELLO!

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •