I am working on a database with a report with several indicators which have a few complex formulas.
However I cannot grasp how to write the formulas that will give me the results of 2 useful indicators.
To make it more simple, I am going to illustrate it with a simple hypothetical example: let's say the data base is about shirts. Please tell me what are the Dcount syntaxes that will give the following results:
1 - Number of items that in a given field do not match 3 possible answers.
I want to count the shirts whose colour (data base field) is not blue, red or green - i.e, they can be of any other colour.
2 - Number of items that in a given field do not match 1 possible answer.
I want to count the shirts whose colour is not blue - i.e, they can be of any other colour except blue.
I have tried the find the correct formulas but I have not succeeded.
2 1122
Well, (and I am not an expert, therefore I am sure there is a better way of doing this but...)
Why don't you dcount the total number of shirts, then dcount the number of shirts you don't want to include, and subtract the results?
NeoPa 32,556
Expert Mod 16PB
Well Manuel, these answers may help, but bear in mind they are specifically for string field testing. Date or number testing would use different formats : -
- DCount("*", "[TableName]", "[Shirt] Not In('Red','Blue','Green')")
-
- DCount("*", "[TableName]", "[Shirt]<>'Blue'")
Sign in to post your reply or Sign up for a free account.
Similar topics
by: Sondra Wilson |
last post by:
I have created a sorted query. The total(records) I get in the query is
correct. My problem lies with getting that total into my report.
I use count to insert the total number of records in my...
|
by: bbdobuddy |
last post by:
Hi
I have a couple of questions
1. can I run a Microsoft Access Query Progamatically from VB.net. If so,
how?
2. can I get access to that query and pull specific pieces of data. If so,...
|
by: amith.srinivas |
last post by:
Hi all,
From a word macro in VBA, I am trying to create a report in
access DB. The report is based on a query with a parameter. I am using
Set rpt = Application.CreateReport
rpt.RecordSource =...
|
by: wakin |
last post by:
When I place the following in my query
ProductivityHours:
IIf(!=85,actualtimeintounittime(),IIf(.=231,3,Sum(IIf(!=33,!/60,IIf(!=102
Or !=158 Or
!=219,0,IIf(!>12
And...
|
by: shapper |
last post by:
Hello,
I have the tables content and content_localized in a Microsoft Access
database.
I created a Query in my Microsoft Access database named
"content_SELECT":
SELECT...
|
by: wizcode |
last post by:
It is possible to create a multiple report in one query, example in the queries you have a 10 records and their is one unique field and in that unique field the query will base and every records have...
|
by: goalv |
last post by:
Hi friends I am bit new to access , I want to make query for data which has not happened after repeated attempts...can any one help me
I have following tables
DATE STORE
ID DATE...
|
by: Ken Jones |
last post by:
I really appreciate the help you guys have been giving me! What would be really helpful now is if you could recommend a really good Microsoft Access Query Reference Manual that would explain to me...
|
by: Hugh Hethner |
last post by:
Hey guys, sorry for not being active on here, just been really busy with work.
So, I'm doing my ICT GCSE Project which is a database. It is basically a database containing data for a video game...
|
by: Charles Arthur |
last post by:
How do i turn on java script on a villaon, callus and itel keypad mobile phone
|
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
|
by: BarryA |
last post by:
What are the essential steps and strategies outlined in the Data Structures and Algorithms (DSA) roadmap for aspiring data scientists? How can individuals effectively utilize this roadmap to progress...
|
by: nemocccc |
last post by:
hello, everyone, I want to develop a software for my android phone for daily needs, any suggestions?
|
by: Sonnysonu |
last post by:
This is the data of csv file
1 2 3
1 2 3
1 2 3
1 2 3
2 3
2 3
3
the lengths should be different i have to store the data by column-wise with in the specific length.
suppose the i have to...
|
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...
|
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...
|
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: 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...
| |