Solved

My Access Join Query is Not Returning Anything?

Posted on 2011-09-09
2
269 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
[X]
Welcome to Experts Exchange

Add your voice to the tech community where 5M+ people just like you are talking about what matters.

  • Help others & share knowledge
  • Earn cash & points
  • Learn & ask questions
2 Comments
 
LVL 48

Accepted Solution

by:
Dale Fye 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

Visualize your virtual and backup environments

Create well-organized and polished visualizations of your virtual and backup environments when planning VMware vSphere, Microsoft Hyper-V or Veeam deployments. It helps you to gain better visibility and valuable business insights.

Question has a verified solution.

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

The Windows Phone Theme Colours is a tight, powerful, and well balanced palette. This tiny Access application makes it a snap to select and pick a value. And it doubles as an intro to implementing WithEvents, one of Access' hidden gems.
Code that checks the QuickBooks schema table for non-updateable fields and then disables those controls on a form so users don't try to update them.
What’s inside an Access Desktop Database. Will look at the basic interface, Navigation Pane (Database Container), Tables, Queries, Forms, Report, Macro’s, and VBA code.
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…

617 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