Results 1 to 2 of 2
  1. #1
    catguy is offline Novice
    Windows XP Access 2003
    Join Date
    Feb 2010
    Location
    Minnesota
    Posts
    20

    Query Join, Expression, or Code

    My brain is fried!
    I have a query with 2 tables (tblX and tblY) that are joined by the "Reported" field. Table X contains the fields "Reported", "Count_of_X" and "Created". Table Y contains the field "Reported".
    The join properties are "All records from tblY and only those from tblX that match", there is also a Where clause with a date range. It appears the date range may be the culprit.
    If there are no records for "Count_of_X", then there will be no records for "Reported" when the query executes.
    What I want to do is, if there are no records for "Count_of_X", I would like to have the "Reported" field return a record at execution and the "Count_of_X" field return a value of "0" (zero), regardless of the date range.


    I have an Excel template that will be pulling the data from this query, but if the "Reported" fields do not match the template fields, the "Count_of_X" data doesn't align and everyone gets mad.
    I'm fairly comfortable with VBA and expressions, but this one has me stumped. Any help would be greatly appreciated!!!! Thanks
    Last edited by catguy; 08-10-2011 at 11:47 AM. Reason: Add more info

  2. #2
    ssanfu is offline Master of Nothing
    Windows 2K Access 2000
    Join Date
    Sep 2010
    Location
    Anchorage, Alaska, USA
    Posts
    9,664
    You are right. When you set the date criteria, you restrict the dataset from tblX "Reported" to only 1 & 2. There are no 3's within the date range.

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

Similar Threads

  1. Join Query?
    By KWarzala in forum Forms
    Replies: 5
    Last Post: 07-29-2014, 02:44 PM
  2. Looking for a VBA code/expression
    By Bear in forum Access
    Replies: 5
    Last Post: 08-04-2011, 02:36 PM
  3. Join Expression not Supported
    By amegahed3 in forum Queries
    Replies: 6
    Last Post: 09-29-2010, 01:28 PM
  4. inner join in query
    By Hrcko in forum Access
    Replies: 1
    Last Post: 02-01-2010, 05:54 PM
  5. Join Expression Not Supported
    By ubsman in forum Queries
    Replies: 3
    Last Post: 04-30-2009, 08:36 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