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

Home Posts Topics Members FAQ

Query "Is Null" not working with date

1 New Member
I've made a query using QBE in Access 2010. I need to filter out all the results that do not have a value for Exception_Date_Completed.

I used the Is Null criteria and it is just giving me a blank date sheet view when I hit run. Any help would be appreciated!

Below is the SQL for the statement:

Expand|Select|Wrap|Line Numbers
  1. SELECT Machine.Machine_Plant, Exception.RptNum, Exception.Exception_Date_Entered, Machine.Machine_ID, Machine.Machine_Dept, Machine.Machine_Location, Exception.Exception_Problem_Description, Exception.Exception_Completed_Date
  2. FROM Machine INNER JOIN (KeyWord INNER JOIN ([Exception] INNER JOIN ExceptionWork ON Exception.RptNum = ExceptionWork.RptNum) ON KeyWord.KeyWord = Exception.KeyWord) ON Machine.Machine_ID = Exception.Machine_ID
  3. WHERE (((Exception.Exception_Completed_Date) Is Null));
Nov 29 '11 #1
1 1469
Rabbit
12,516 Recognized Expert Moderator MVP
If you're trying to filter out the dates with no value, then you need to use IS NOT NULL not IS NULL.
Nov 29 '11 #2

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

Similar topics

2
1551
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...
7
2424
by: Nicolae Fieraru | last post by:
Hi All, I have a table tblProducts where I have four fields:\ Index, ProductName, EnterDate (as Date/Time - Medium Date), PurchaseDate (Date/Time - Medium Date) The EnterDate is automatically...
2
2304
by: Norbert Lieckfeldt | last post by:
I am setting up a database for a friend who's an Optician, using MS Access 2002. All seems to be working well, but I have hit a snag. There's a calculated field both in a form and a query which...
1
10693
by: seash | last post by:
H when i execute this query, my query is crashing throwing an exception "cant convert char datatype to datetime type format my query is "insert into mytable(mydate) values ('"+ varmydate+ "')...
7
2945
by: CheezIt2831 | last post by:
hello, I have 5 tables(Alpha, Bravo, Charlie, Service, Trans). What i am trying to do is be able to select a start date and ending date for a report and include fields from the 5 tables. this is my...
8
6383
by: Ragbrai | last post by:
Howdy All, I have a query that is used for filtering results to be used in a combo box. The query needs to test fields from both a table and then unbound text boxes on the form that also contains...
2
1447
seshu
by: seshu | last post by:
Hi Everybody this is seshu here i have a doubt How to write a query to execute on date change (do you call that a batch code or batch id i dont know what is the technical name of such a code )...
2
1816
by: wevans | last post by:
I have 3 tables, Customer, Offsite Service and service. I need to create a sales report/query based on the results of the user input, which is a date range. I've got it working great with two of the...
9
3219
by: Millie18 | last post by:
Hi, I’m trying to set up a query to find all dates on or between a start and end date. Table name and field names I’ve used: Tbl_bookings Booking No Boarding Arrival Date Boarding Departure...
1
1404
greeni91
by: greeni91 | last post by:
Hi All, I have been working on a database for a few weeks now and I have hit a bit of a snag. I have to make a set of reports detailing which machines need maintenance in the upcoming month. I...
0
7046
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
6908
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
7088
jinu1996
by: jinu1996 | last post by:
In today's digital age, having a compelling online presence is paramount for businesses aiming to thrive in a competitive landscape. At the heart of this digital strategy lies an intricately woven...
1
6741
by: Hystou | last post by:
Overview: Windows 11 and 10 have less user interface control over operating system update behaviour than previous versions of Windows. In Windows 11 and 10, there is no way to turn off the Windows...
0
6956
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...
1
4783
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
4485
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
2997
by: TSSRALBI | last post by:
Hello I'm a network technician in training and I need your help. I am currently learning how to create and manage the different types of VPNs and I have a question about LAN-to-LAN VPNs. The...
1
563
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.