Results 1 to 6 of 6
  1. #1
    KWarzala is offline Advanced Beginner
    Windows XP Access 2003
    Join Date
    Sep 2009
    Posts
    35

    Join Query?

    I have 2 tables: tblLocations with Type (has store locations and whether they are a food or merchandise location) and tblBreakdown (has the date, Location, and the amount of money spent at the location) I am trying to make a report that shows all the store locations (even if no money was spent there) and be able to pull up the report by month and see what dates something was purchased from the store. Basically right now, there is a paper checklist for each month which has all the locations on it, and when something is purchased at the store it gets highlighted, so it is easy to see which one's haven't been visited in the month. I can make a report that shows the location name, and when it was visited, but it wont show the locations that haven't been visited. i don't know if this makes sense. thank you!

  2. #2
    Cleave_1b is offline Novice
    Windows 8 Access 2010 64bit
    Join Date
    Jul 2014
    Posts
    27
    I have the same problem: List of people, list of properties, inner join doesn't show people without properties. wish someone had answered your question!

    My tentative solution is to take the results of the current query, make it into a table then add the needed records. Lot of fields though!

    Or is there an easy way to make a table out of a query other than stepping through and writing each field?

    Dick

  3. #3
    KWarzala is offline Advanced Beginner
    Windows XP Access 2010 64bit
    Join Date
    Sep 2009
    Posts
    35
    Oh man, i forgot i even posted this! i actually got it to work about a year ago, give me a minute to figure out what i did to make it work and i'll let you know!


    Quote Originally Posted by Cleave_1b View Post
    I have the same problem: List of people, list of properties, inner join doesn't show people without properties. wish someone had answered your question!

    My tentative solution is to take the results of the current query, make it into a table then add the needed records. Lot of fields though!

    Or is there an easy way to make a table out of a query other than stepping through and writing each field?

    Dick

  4. #4
    KWarzala is offline Advanced Beginner
    Windows XP Access 2010 64bit
    Join Date
    Sep 2009
    Posts
    35
    OK, try doing this (I hope this helps!)

    make a query (qryPeople) showing all the people there are, and whatever fields you need (include the linked field).

    make a second query (qryProperties) from your properties table with just your linked field (i'm assuming the people list also has a field for property) and date field (i needed mine to just show this month's data when the report opened so i have the following formula in the criteria for date: "Between DateSerial(Year(Date()),Month(Date()),1) And DateSerial(Year(Date())+1,0)"

    Then make a third query (qryPeopleAndProperties - this will be the one that the report is based off of) using both of the first two queries, have your join say "Include ALL records from 'qryPeople' and only those records from 'qryLocations' where the joined fields are equal"

    include the fields from qryPeople, and just the linked field from qryProperties (you don't need to add the date field to this one) in the totals column of the query select 'Count' for the field from qryProperties

    Hopefully this gets you the result you're looking for (i'm not sure which way you need yours, so you may need to switch the two queries depending on how you want it)

    Quote Originally Posted by Cleave_1b View Post
    I have the same problem: List of people, list of properties, inner join doesn't show people without properties. wish someone had answered your question!

    My tentative solution is to take the results of the current query, make it into a table then add the needed records. Lot of fields though!

    Or is there an easy way to make a table out of a query other than stepping through and writing each field?

    Dick

  5. #5
    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,743
    You may want to look at the Unmatched query in the ACCESS query wizard.

  6. #6
    Cleave_1b is offline Novice
    Windows 8 Access 2010 64bit
    Join Date
    Jul 2014
    Posts
    27
    Sounds complex at first reading, but I imagine a bit of study will do it - thanks a lot!

    Dick

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

Similar Threads

  1. Stuck on Join Query
    By Pimped in forum Queries
    Replies: 1
    Last Post: 10-26-2009, 10:54 AM
  2. How does Access guess join field in query?
    By bar tomas in forum Database Design
    Replies: 1
    Last Post: 05-27-2009, 05:56 PM
  3. Self Join in a Table
    By LornaM in forum Database Design
    Replies: 10
    Last Post: 05-06-2009, 10:29 AM
  4. Replies: 1
    Last Post: 09-19-2006, 11:07 AM
  5. Dynamic Query Outer Join Problem
    By mjack003 in forum Queries
    Replies: 0
    Last Post: 07-21-2006, 01:07 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