473,586 Members | 2,681 Online
Bytes | Software Development & Data Engineering Community
+ Post

Home Posts Topics Members FAQ

Report - Counting Records Minus a Certain Location

Hello,

I have a database that keeps track of cameras by location using their
serial numbers. I have a report that in the report footer I have the
following:

=Count([Camera Serial #])

This counts all the records with serial numbers which gives me a count
of all cameras from all locations. I also want to be able to list dead
cameras in the same report, but I do not want it to be included in the
count, so when it shows Total of cameras at all locations it will not
include those under the Current Location: Written Off/Dead. Please
help. Thanks.

Blake

Oct 31 '06 #1
2 1436
=DCount("*","Ta ble","[Location]<>'Written Off/Dead'")

Blake wrote:
>Hello,

I have a database that keeps track of cameras by location using their
serial numbers. I have a report that in the report footer I have the
following:

=Count([Camera Serial #])

This counts all the records with serial numbers which gives me a count
of all cameras from all locations. I also want to be able to list dead
cameras in the same report, but I do not want it to be included in the
count, so when it shows Total of cameras at all locations it will not
include those under the Current Location: Written Off/Dead. Please
help. Thanks.

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

Oct 31 '06 #2
AWESOME!!!!!!!! !!!! You dont know how many Not statements and other
ways I tried. It works great. Thanks for the help.

On Oct 31, 4:08 pm, "kingston via AccessMonster.c om" <u27511@uwe>
wrote:
=DCount("*","Ta ble","[Location]<>'Written Off/Dead'")

Blake wrote:
Hello,
I have a database that keeps track of cameras by location using their
serial numbers. I have a report that in the report footer I have the
following:
=Count([Camera Serial #])
This counts all the records with serial numbers which gives me a count
of all cameras from all locations. I also want to be able to list dead
cameras in the same report, but I do not want it to be included in the
count, so when it shows Total of cameras at all locations it will not
include those under the Current Location: Written Off/Dead. Please
help. Thanks.
Blake--
Message posted via AccessMonster.c omhttp://www.accessmonst er.com/Uwe/Forums.aspx/databases-ms-access/2006...- Hide quoted text -- Show quoted text -
Oct 31 '06 #3

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

Similar topics

2
2080
by: N. Graves | last post by:
I have a table with records of games played with a field for players name and another fields is a "WinorLose". One player may play several games to complete a match. I want my report to tell me how many Wins or Loses and Individual has in a match.. I'm not having a problem getting the reports and the grouping it by person but I'm having a...
3
6107
by: mark | last post by:
How do I get all fields on one page of a report? I have a report that has a column for each day of the week and 6 records for each day. I need each weekday's records returned on only one detail page. Instead I am getting a new table layout for each day of the week. I have tried grouping on every record and combination I can, manipulating the...
5
1814
by: chrisc | last post by:
Hello, Hope this is the right place for this... I am creating a testing database for components as they come off a production line. My reports need to select faults that are found, as well as pass or fails dependent on a batch number.
4
2769
by: CH | last post by:
Hi, I recently encountered a problem while trying to create a report grouped by certain time frames. However, Access only allows grouping in Minutes or Hours. For example, the first time frame is from 5:30am to 6:20am, if I have record 1 with time = 5:30am, record 2 with time = 6:00am and record 3 with time = 6:30am, the report will group...
4
2658
by: Hardy Wang | last post by:
Hi, I have a web form, after post back to itself, I need to make web page scroll to some certian location instead of top. We only care IE. Anybody has some idea how to do it? -- WWW: http://hardywang.1accesshost.com ICQ: 3359839 yours Hardy
1
2137
by: Joseph Berry | last post by:
I have created a report drawing from one table. What I would like to is, grouping by one field, count the number of records within the group that meet two selection criteria (i.e., Field1="A" and Field2="1"). How do I go about doing that? Many thanks!
3
1207
by: Blake | last post by:
Hello, I have a database at work that keeps an inventory of cameras by location. Every week I get a repair estimate sheet that lists cameras by serial number that need to be repaired. This list is sent to me in excel. I am trying to make it where I can just copy the column of serial numbers from the excel list sent to me and paste it...
5
10853
by: Soccer5 | last post by:
Trying to Count records on a report that meet a certain criteria. Have a text box in the Report Footer that has the following in the Control Source: =Count(="S") This does not work. It counts ALL records whether Record Type = "S" or "M" There is nothing unique about the records to distinguish S-type records from the M-type records.
1
5582
by: Doug | last post by:
What is the simplest way to make a report where only the records where a field matches a certain date are included, and the user first selects that date (from form or popup)? (I can write the SQL to select the records I want...)
0
7839
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 effortlessly switch the default language on Windows 10 without reinstalling. I'll walk you through it. First, let's disable language...
0
8202
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, it seems that the internal comparison operator "<=>" tries to promote arguments from unsigned to signed. This is as boiled down as I can make it. ...
0
8338
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 tapestry of website design and digital marketing. It's not merely about having a website; it's about crafting an immersive digital experience that...
0
8216
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 protocol has its own unique characteristics and advantages, but as a user who is planning to build a smart home system, I am a bit confused by the...
0
6614
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, and deployment—without human intervention. Imagine an AI that can take a project description, break it down, write the code, debug it, and then...
0
5390
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 then checking html paragraph one by one. At the time of converting from word file to html my equations which are in the word document file was convert...
0
3865
by: adsilva | last post by:
A Windows Forms form does not have the event Unload, like VB6. What one acts like?
1
2345
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 we have to send another system
1
1449
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.