473,503 Members | 1,910 Online
Bytes | Software Development & Data Engineering Community
+ Post

Home Posts Topics Members FAQ

Calc field's where field value is empty

In a report's calculated field I have the following code:
=DCount("[OrderID]", "Orders", "[ShipRegion] = 'CA'")
Now I would like to do the same calculation except that the criterium is
that [ShipRegion] = Null.
I have tried all kinds of combinations like
"[ShipRegion] = Null"
"[ShipRegion] = Is Null"
"[ShipRegion] = 'Is Null'"
"[ShipRegion] = ''"
but I can't get it to work.
Anyone an idea?
Thanks,
john
Oct 1 '06 #1
3 1509
Have you tries "IsNull([ShipRegion])"?

john wrote:
>In a report's calculated field I have the following code:
=DCount("[OrderID]", "Orders", "[ShipRegion] = 'CA'")
Now I would like to do the same calculation except that the criterium is
that [ShipRegion] = Null.
I have tried all kinds of combinations like
"[ShipRegion] = Null"
"[ShipRegion] = Is Null"
"[ShipRegion] = 'Is Null'"
"[ShipRegion] = ''"
but I can't get it to work.
Anyone an idea?
Thanks,
john
--
HTH - RuralGuy (RG for short) acXP WinXP Pro
Please post back to this forum so all may benefit.

Message posted via AccessMonster.com
http://www.accessmonster.com/Uwe/For...ccess/200610/1

Oct 1 '06 #2
That's it!
Thanks,
john

"ruralguy via AccessMonster.com" <u12102@uweschreef in bericht
news:6721960ff24c3@uwe...
Have you tries "IsNull([ShipRegion])"?

john wrote:
>>In a report's calculated field I have the following code:
=DCount("[OrderID]", "Orders", "[ShipRegion] = 'CA'")
Now I would like to do the same calculation except that the criterium is
that [ShipRegion] = Null.
I have tried all kinds of combinations like
"[ShipRegion] = Null"
"[ShipRegion] = Is Null"
"[ShipRegion] = 'Is Null'"
"[ShipRegion] = ''"
but I can't get it to work.
Anyone an idea?
Thanks,
john

--
HTH - RuralGuy (RG for short) acXP WinXP Pro
Please post back to this forum so all may benefit.

Message posted via AccessMonster.com
http://www.accessmonster.com/Uwe/For...ccess/200610/1

Oct 1 '06 #3
You're very welcome John.

john wrote:
>That's it!
Thanks,
john
>Have you tries "IsNull([ShipRegion])"?
[quoted text clipped - 11 lines]
>>>Thanks,
john
--
HTH - RuralGuy (RG for short) acXP WinXP Pro
Please post back to this forum so all may benefit.

Message posted via http://www.accessmonster.com

Oct 1 '06 #4

This thread has been closed and replies have been disabled. Please start a new discussion.

Similar topics

10
3679
by: Randell D. | last post by:
Folks, Perhaps someone can figure this out - this is 'the process of my script' I have a form whereby I can add multiple contacts to a single address. There is only one...
9
1943
by: jason | last post by:
Access 2000 I need some help interogatting a table and extracting via ASP the final field in a row which has a value. In other words, I have a maximum of 10 fields but, at the user level he may...
6
9610
by: WindAndWaves | last post by:
Hi Gurus In my quest in putting my first javascript together, I am now trying to conquer something that seems trivial, but has taken me hours. I would like to format a field in a form once the...
16
1721
by: PeteCresswell | last post by:
I was happily coding along, putting some calculation results (rolling annualized rates of return - too compute-intensive to calculate on-the-fly - had tb staged beforehand via a batch job) into...
4
665
by: Mike | last post by:
Hi, I need to read an hidden field on the server side (code behind). I can modify the value in Javascript (client side), then call "form.submit();" on the client side. However, on the server...
6
11233
by: Mark Kamoski | last post by:
Hi Everyone-- Please help. What is the difference between a Field and a Property? Here is the context. In the VS.NET 2002 documentation, in the "String Members" section, we have the...
3
3005
by: Joachim | last post by:
Hi I am a beginner in VB.NET, and have a problem with empty field in Access I have transfered a worksheet in Excel to Access table. Some of the cels are empty I use VB.NET program to acces...
7
12922
by: Tizzah | last post by:
What is wrong with that? regex = /^(http|https):\/\/+({1}+)*\.{2,5}(({1,5})?\/.*)?$/ if(field.hpage.value != regex.test(field.hpage.value)){ alert("Bad Homepage") field.hpage.focus()...
2
3985
by: MLH | last post by:
Fields in MyTable: PostID PostDate RollQtyXfer RollDenomination RollCount37 RollCount23
0
7205
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
7287
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
7348
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...
0
7467
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
5592
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,...
0
4685
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
3175
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
3166
by: adsilva | last post by:
A Windows Forms form does not have the event Unload, like VB6. What one acts like?
0
1519
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 ...

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.