473,499 Members | 1,595 Online
Bytes | Software Development & Data Engineering Community
+ Post

Home Posts Topics Members FAQ

IS NULL is not working on query

1 New Member
Hi, Can you please help . I have never had this happen before but the is Null is not working. Here is the SQL;

Expand|Select|Wrap|Line Numbers
  1. SELECT [Q3 Add Dates and SRR].[Arrangement ID], [Q3 Add Dates and SRR].[Q1- ADR INFO].[Order Number], [Q3 Add Dates and SRR].ADR.[Deal Number], [Q3 Add Dates and SRR].[Sales Document Type], [Q3 Add Dates and SRR].[Net License Fee Amount]
  2. FROM [Q3 Add Dates and SRR]
  3. WHERE ((([Q3 Add Dates and SRR].ADR.[Deal Number]) Is Null) AND (([Q3 Add Dates and SRR].[Net License Fee Amount])<>0));
Sep 29 '15 #1
2 1192
Seth Schrock
2,965 Recognized Expert Specialist
Define "not working". Do you get an error message or are the results not what you were expecting?

Also, please verify that you are using Access. The field reference looks kind of like SQL server, but it could be a typo or just something I've never seen before. But you might check your field reference [Q3 Add Dates and SRR].ADR.[Deal Number].
Sep 29 '15 #2
NeoPa
32,557 Recognized Expert Moderator MVP
On your line #3 you have a dodgy reference to :
Expand|Select|Wrap|Line Numbers
  1. ([Q3 Add Dates and SRR].ADR.[Deal Number])
This is what you're testing with Is Null. The latter is fine, of course. Your reference is where the problem lies.

NB. Please try to follow the guidelines in future about asking questions sensibly. It's hard to give answers when the question barely makes sense.
Sep 30 '15 #3

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

Similar topics

13
4199
by: Lee | last post by:
Hello All, First of all I would like to say thank you for all of the help I have received here. I have been teaching myself Access for about 4 years now and I've always been able to find a...
2
1469
by: Kurt Schroeder | last post by:
I have a query result set that returns some fields with null length what is the easiest way to chek for this. This is what i'm trying but it generated a runtime error: If...
4
6583
by: TD | last post by:
I have a form that has a frame control named fraComplaint. I have a query that I need to return records that have an empty Date_Closed field when the value of fraComplaint is 2 and all records...
7
12809
by: Darknight850 | last post by:
I am new to this forum and wanted to say Hello to every one, and i hope i can help every one as much as they can help me. I have made a query for weekly reports and i have used this to give me the...
3
11801
by: db55 | last post by:
How does the phrase "Is Not Null" in the where clause effect the effectiveness of a query? If it is a determent to the effectiveness of the query, how do you work around it? Thanks,
10
3930
imrosie
by: imrosie | last post by:
Hi all, I've trying to set up a 'receivables' aging query, however, I keep getting this error message when I attempt to run in. Here is the sql (query): SELECT DISTINCTROW Customers.CompanyName,...
1
2580
by: veaux | last post by:
Question deals with linking tables in queries. I'm not a code writer so use the GUI for all my queries. Table 1 - Master Table 2 - Sub1 Table 3 - Sub 2 All 3 tables have the same key field....
2
5017
by: wizardry | last post by:
hello - i'm trying to insert a blob into my table, it will insert but the string that i insert when i query the inserted data returns null with 0 bytes in the column. I have other tables set...
0
3044
prabirchoudhury
by: prabirchoudhury | last post by:
CRITERIA; +-------------+--------------+------+-----+---------+-------+ | Field | Type | Null | Key | Default | Extra | +-------------+--------------+------+-----+---------+-------+...
8
23661
by: dougancil | last post by:
I have the following query: insert into msbtotal.dbo.newclients SELECT distinct tcms_members.dbo.memberdata2.* FROM tcms_members.dbo.memberdata2 left outer join msbtotal.dbo.memberdata on...
0
7007
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
7220
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
6894
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
7388
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
4600
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
3099
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...
0
3091
by: adsilva | last post by:
A Windows Forms form does not have the event Unload, like VB6. What one acts like?
0
1427
by: 6302768590 | last post by:
Hai team i want code for transfer the data from one system to another through IP address by using C# our system has to for every 5mins then we have to update the data what the data is updated ...
1
665
muto222
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.