473,396 Members | 1,982 Online
Bytes | Software Development & Data Engineering Community
Post Job

Home Posts Topics Members FAQ

Join Bytes to post your question to a community of 473,396 software developers and data experts.

Total newbie question

=DSum("[CountOfOrder Number]","QryCustomers bfg","[Major] = 'Carrier' ")

Working in access 2000, this is for a value in my form, it works fine as long as the query it refers to returns a record, if it does not I get nothing, I am needing it to return a zero.

Sorry if this is a stupid question.
Mar 14 '08 #1
1 947
MindBender77
234 100+
=DSum("[CountOfOrder Number]","QryCustomers bfg","[Major] = 'Carrier' ")

Working in access 2000, this is for a value in my form, it works fine as long as the query it refers to returns a record, if it does not I get nothing, I am needing it to return a zero.

Sorry if this is a stupid question.
You could try this. Note, it is untested:
=iif(DSum("[CountOfOrder Number]","QryCustomers bfg","[Major] = 'Carrier' ","",0))


Bender
Mar 14 '08 #2

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

Similar topics

4
by: Rob | last post by:
I haven't a clue how to accomplish this. All the data is in one table. The data is stored by registration date and includes county and number of students brokne out by grade. Any help...
7
by: streff | last post by:
Hi all, my first post here, i'm a bit of a newbie when it comes to access programming. I need to design a query that will return a number of dvd titles with a total running time of a set size...
1
by: iht | last post by:
Fairly new to Access and really doesn't know much about SQL except some basic commands. Currently I'm working with a database that I've already sorted by some queries, and here's a simplified...
1
by: RICHARD BROMBERG | last post by:
Using Access 2000, I have a table called tblAccounts The number of entries in this table can increase or decrease. I also have a form where I use a Combo box to locate any of the entries using...
5
by: alanb | last post by:
Hi, hope someone can help, I need to be able to keep a running total of radio buttons selected, as a user goes through a set of 16 questions, devided in to 4 catorgories, then on "submit" have the...
20
by: Amanduh | last post by:
Hi, I'm kind of being forced to dive into the whole Access world at my work, and I haven't done coding in years. I've basically created the whole database I want, even made cascading comboboxes. ...
21
beacon
by: beacon | last post by:
Hello to everybody, I have a section on a form that has 10 questions, numbered 1-10, with 3 option buttons per question. Each of the option buttons have the same response (Yes, No, Don't know),...
2
by: testar | last post by:
Hi there, I am trying to do a similar thing here with access n vb but with a few additions. Please take a look. I have a table that looks like this: ID Product Total 1 aaa 10 2 ...
5
by: Banibrata Dutta | last post by:
Hi, I've gone through the list of "language differences" between 2.3 / 2.4 & 2.5 of CPython. I've spend around 2 weeks now, learning v2.5 of CPython, and I consider myself still very very...
0
by: Charles Arthur | last post by:
How do i turn on java script on a villaon, callus and itel keypad mobile phone
0
by: ryjfgjl | last post by:
In our work, we often receive Excel tables with data in the same format. If we want to analyze these data, it can be difficult to analyze them because the data is spread across multiple Excel files...
0
by: emmanuelkatto | last post by:
Hi All, I am Emmanuel katto from Uganda. I want to ask what challenges you've faced while migrating a website to cloud. Please let me know. Thanks! Emmanuel
1
by: nemocccc | last post by:
hello, everyone, I want to develop a software for my android phone for daily needs, any suggestions?
0
by: Hystou | last post by:
There are some requirements for setting up RAID: 1. The motherboard and BIOS support RAID configuration. 2. The motherboard has 2 or more available SATA protocol SSD/HDD slots (including MSATA, M.2...
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
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
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
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...

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.