473,473 Members | 1,848 Online
Bytes | Software Development & Data Engineering Community
Create Post

Home Posts Topics Members FAQ

Unmatched Query searchin null values for Date Range

2 New Member
I have a table with Client info and a table with Client's case notes. Case Notes should be entered weekly and I need a query that tells me if a case note has not been entered for a client within a date range. Grateful for any assistance - I am a newbie to Access :)
Dec 14 '13 #1
2 1591
NeoPa
32,556 Recognized Expert Moderator MVP
This one trips people up all the time.

Your inner query (only) should show the notes and be filtered to the date range.

When you have that working you can run a standard 'missing' style query by linking the results of the inner query as a LEFT JOIN to the Client table and filtering for Null in the linked field(s) of the inner query.

So, say the inner query is named qryClientNote and returns two fields to make it unique - [ClientID] & [NoteDate] - and the Client table also has a [ClientID] field to identify Client records, then the outer query might look like (in SQL) :
Expand|Select|Wrap|Line Numbers
  1. SELECT tC.*
  2. FROM   [tblClient] AS tC
  3.        LEFT JOIN
  4.        [qryClientNote] AS qCN
  5.   ON   tC.ClientID=qCN.ClientID
  6. WHERE  (qCN.NoteDate Is Null)
Dec 15 '13 #2
snoozie17
2 New Member
Thanks for your help NeoPa. Got it working :))
Dec 21 '13 #3

Sign in to post your reply or Sign up for a free account.

Similar topics

7
by: Thomas R. Hummel | last post by:
Hello all, I am trying to write a query that compares a member's enrollment period with the products that their group has had during that period (all members belong to a group and the products...
2
by: rong.guo | last post by:
Hi Group! I am struggling with a problem of giving a date range given the start date. Here is my example, I would need to get all the accounts opened between each month end and the first 5...
6
by: BlackFireNova | last post by:
Using Access 2002 I am writing a report which draws data from several different tables. I can't link all the tables in a query, as some can not be related without truncating the data. I plan...
2
by: Terry | last post by:
I have a database that I would like to query for a specific date range. I want to create a report based on this query that will pull any records from the last 7 days. Is this possible? Can...
2
by: geek491 | last post by:
I want an SQL that displays all the days within the range given. SELECT <days> from <dual> where days between '01/01/2006' and '12/12/2006' Dual table is precent in Oracle but what is its...
8
by: Hugh Middity2 | last post by:
Hello, We have an access report based on a query in which a date range is entered. Is there a way of keeping the date range to print on the report? Thanks
1
by: ruvi | last post by:
Hi, I am using Vb 6 and Access. I am getting syntax error in the following sql query. strSql = "SELECT ...
1
by: devyon122 | last post by:
I'm trying to allow a user to type in a beginning data and an ending date to be used in a crosstab query - Below is the query: TRANSFORM Count(imagingdb.ID) AS CountOfID TRANSFORM...
8
by: ndeeley | last post by:
Hi, My database user has just decided that a recent text field in my database needs to be numeric so that some calculations can be run. I've changed it to a double so I can keep the point...
5
by: David Biscan | last post by:
Hi, I struggle with my project big time... I am creating a database based on a car rental. I am trying to create a query where after entering a specific date, it will list all of the cars that...
0
marktang
by: marktang | last post by:
ONU (Optical Network Unit) is one of the key components for providing high-speed Internet services. Its primary function is to act as an endpoint device located at the user's premises. However,...
0
by: Hystou | last post by:
Most computers default to English, but sometimes we require a different language, especially when relocating. Forgot to request a specific language before your computer shipped? No problem! You can...
0
Oralloy
by: Oralloy | last post by:
Hello folks, I am unable to find appropriate documentation on the type promotion of bit-fields when using the generalised comparison operator "<=>". The problem is that using the GNU compilers,...
0
tracyyun
by: tracyyun | last post by:
Dear forum friends, With the development of smart home technology, a variety of wireless communication protocols have appeared on the market, such as Zigbee, Z-Wave, Wi-Fi, Bluetooth, etc. Each...
0
agi2029
by: agi2029 | last post by:
Let's talk about the concept of autonomous AI software engineers and no-code agents. These AIs are designed to manage the entire lifecycle of a software development project—planning, coding, testing,...
1
isladogs
by: isladogs | last post by:
The next Access Europe User Group meeting will be on Wednesday 1 May 2024 starting at 18:00 UK time (6PM UTC+1) and finishing by 19:30 (7.30PM). In this session, we are pleased to welcome a new...
0
by: conductexam | last post by:
I have .net C# application in which I am extracting data from word file and save it in database particularly. To store word all data as it is I am converting the whole word file firstly in HTML and...
0
by: adsilva | last post by:
A Windows Forms form does not have the event Unload, like VB6. What one acts like?
0
muto222
php
by: muto222 | last post by:
How can i add a mobile payment intergratation into php mysql website.

By using Bytes.com and it's services, you agree to our Privacy Policy and Terms of Use.

To disable or enable advertisements and analytics tracking please visit the manage ads & tracking page.