Results 1 to 2 of 2
  1. #1
    slevin is offline Novice
    Windows 7 Access 2010 (version 14.0)
    Join Date
    Jun 2010
    Posts
    1

    Matching between 2 tables

    Hello everyone,

    I'm doing this small DB for my real estate company, we're using at the moment "Jade Tools" but due to the many problems and bugs it has, we've decided to switch to Access.

    I have created 3 tables: properties, inquiries, contacts

    properties: id, location, price, type, owner
    inquiries: id, type, location, price, client
    contact: id, type, phone, email

    I had already made the relationship between 'price' and 'location' so that they fetch the data from the same source (another table).

    What I wanna do is match the "Inquiry" to the "Properties"

    Let's say, I have a client who wants to buy an Apartment in Lebanon for $300,000 - I want it to automatically look up the properties and find the matches to his request.



    I'm new to access so there are alot of things that I don't know, I don't know whether this could be achieved via a query or a report. Some advise would be great.

  2. #2
    NTC is offline VIP
    Windows Vista Access 2007
    Join Date
    Nov 2009
    Posts
    2,392
    You will have an Inquiries form based on the record of the inquiry table. This form will of course have controls that have values for price, location. Set that up and have it open with a record showing. shrink it out of the way.

    Then make a new query on the Properties table. Add criteria that will filter by 'calling' the controls from the InquiryForm. You will use this syntax for example in the location field: Forms!InquiryForm.LocationField

    Once this query is set up and works correctly - that's the fundamental data and if you didn't care about looks you could just manually open up the query.

    But getting into design user friendliness - then you can make a form based on this query . - - call it InquiryPropSubform.

    Then you have some choices as to how you want to present this subform. The simplist thing is simply to open the subform manually.

    You could make your InquiryForm into a tabbed form and insert the subform in its own tab or you could just insert it into the InquiryForm directly.

    There is no cross referencing field between these two record sets (Inquiries and Properties) - that is ok. When inserting a subform it presumes there generally is a cross reference - - and it is going to presume it to be 'ID' because you have the same named field in both - - you need to delete this default when inserting the subform.

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

Similar Threads

  1. Replies: 9
    Last Post: 06-23-2010, 02:06 PM
  2. String Matching
    By tuna in forum Programming
    Replies: 1
    Last Post: 05-16-2010, 12:22 PM
  3. Join queries that do not have matching field
    By Petefured in forum Queries
    Replies: 2
    Last Post: 05-04-2010, 11:19 AM
  4. Matching Query Dates
    By rgwynne in forum Queries
    Replies: 1
    Last Post: 08-13-2009, 05:23 AM
  5. Display Non Matching Data
    By k1fox in forum Access
    Replies: 1
    Last Post: 04-03-2009, 07:18 PM

Tags for this Thread

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