Solved

My Access Join Query is Not Returning Anything?

Posted on 2011-09-09
2
244 Views
Last Modified: 2012-05-12
I have a need for a continuous time line report. That is, there must be an entry for every week, even if that entry is zero events.

To accompllish that, I am trying to Make a Right Join Query of  a table with the data I need and the week it occurred, with a Table of the Possible Week ending dates.

When I run the query, however, it returns nothing. I used the Access Query designer to create the relationship and the query. I have pasted the SQL below.
SELECT QPR_Interstuhl_QNs_tbl.[WeekEndingDate], QPR_Interstuhl_QNs_tbl.[Total_QNs]
FROM QPR_Interstuhl_QNs_tbl RIGHT JOIN Possible_Week_Ending_Dates_Tbl ON QPR_Interstuhl_QNs_tbl.WeekEndingDate = Possible_Week_Ending_Dates_Tbl.PossibleWeekEndingDates;

Open in new window

0
Comment
Question by:Rex85
2 Comments
 
LVL 47

Accepted Solution

by:
Dale Fye (Access MVP) earned 500 total points
ID: 36512929
you need to include the possible_week_ending_dates table in your select clause.
0
 

Author Closing Comment

by:Rex85
ID: 36512982
Well! That was easy. (After you showed me!) Thanks.
0

Featured Post

DevOps Toolchain Recommendations

Read this Gartner Research Note and discover how your IT organization can automate and optimize DevOps processes using a toolchain architecture.

Question has a verified solution.

If you are experiencing a similar issue, please ask a related question

'Between' is such a common word we rarely think about it but in SQL it has a very specific definition we should be aware of. While most database vendors will have their own unique phrases to describe it (see references at end) the concept in common …
Preparing an email is something we should all take special care with – especially when the email is for somebody you may not know very well. The pressures of everyday working life stacked with a hectic office environment can make this a real challen…
Familiarize people with the process of retrieving data from SQL Server using an Access pass-thru query. Microsoft Access is a very powerful client/server development tool. One of the ways that you can retrieve data from a SQL Server is by using a pa…
Access reports are powerful and flexible. Learn how to create a query and then a grouped report using the wizard. Modify the report design after the wizard is done to make it look better. There will be another video to explain how to put the final p…

809 members asked questions and received personalized solutions in the past 7 days.

Join the community of 500,000 technology professionals and ask your questions.

Join & Ask a Question