473,385 Members | 2,210 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,385 software developers and data experts.

Count all the 9’s in field1

I’m working on a query that will count all the 9,8,7 that fall between the expiration date

Count all the 9’s in field1
Count all the 8’s in field1
Count all the 7’s in field1
Count all the 6’s in field1

That fall between #01/01/10# and #01/31/10# “Jan”
That fall between #02/01/10# and #02/31/10# “Feb”
That fall between #03/01/10# and #03/31/10# “March”

I think it would look something like this, but I cant get it to work:
Expand|Select|Wrap|Line Numbers
  1. JanApps: Sum(IIf([Expiration_date] Between #1/1/2010# And #1/31/2010#,Count[field1]=9,0))
So it would look something like this

Jan/Feb/Mar
5 / 8/ 10


Thanks for taking the time to help me learn
Dec 22 '10 #1
3 1311
Rabbit
12,516 Expert Mod 8TB
Can't you do a count, grouping by month, year, and field1? And to get it into that particular layout, you could use a crosstab.
Dec 22 '10 #2
I tried using the crosstab query, but I was having trouble separating 2010.2009,2008 ect

any advice?
Dec 22 '10 #3
Rabbit
12,516 Expert Mod 8TB
Filter for the year if you only want a certain year, group by the year if you want all years but you want them separated out.
Dec 22 '10 #4

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

Similar topics

2
by: Robert Oschler | last post by:
I want to get a list of records with duplicate (or triplicate, etc.) fields. I tried: SELECT *, count(*) as q FROM test WHERE q > 1 GROUP BY field1; This didn't work because "q" is regarded as...
4
by: ZyPhiX | last post by:
Hi, I've got a little problem: I'm trying to make a webpage with a few scrolldown menu's and I want to count the values of them. In the scrolldown menu's are no numeric values but the have to...
2
by: gregfocker | last post by:
I have three tables: table1 has a one-to-many relationship with both table2 and table3. When I do a left join to get a count from table2, it works: SELECT table1.field1, COUNT(table2.field1) as...
5
by: Cro | last post by:
Hello Access Developers, I'd like to know if it is possible to perform a count in an expression that defines a control source. My report is based on a query. In my report, I want a text box to...
3
by: Abhi | last post by:
Hi! I am wondering if this query is possible somehow: I have a table with many fields that all can have a value from 1 to 5. if I wanna see the count of each value from one field, then this...
1
by: griemer | last post by:
I have a database like this id, field1,field2,field3,field4,field5 Database contains 100 rows, some rows have no fields filled, some 1field , some 2 fields etc. How would i count the...
1
by: sunilkeswani | last post by:
Hi I am still new to access. I want to know how i can build a query which can display results from 4 different columns/fields Like. Field1 Field2 Field3 Field4 1 2 1 ...
2
by: S0ck3t | last post by:
Please could I have some help on matching records between tables. I want to return a check (true/false) stating whether the field combination in table 1 occurs in table 2. Obviously it's easy with...
1
by: SAbijoux | last post by:
Hi guys, I need to do a count from two tables without using distinct. Say, select count(field1) from table1 group by someval; and select count(field2) from table2 group by someval; How do I...
1
by: Phil Davis | last post by:
What started as a simple requirement is turning into something rather more complex. In the following (simplified) query: Select field1, field2 FROM table WHERE .... GROUP BY field1, field2 ...
0
by: taylorcarr | last post by:
A Canon printer is a smart device known for being advanced, efficient, and reliable. It is designed for home, office, and hybrid workspace use and can also be used for a variety of purposes. However,...
0
by: aa123db | last post by:
Variable and constants Use var or let for variables and const fror constants. Var foo ='bar'; Let foo ='bar';const baz ='bar'; Functions function $name$ ($parameters$) { } ...
0
by: ryjfgjl | last post by:
If we have dozens or hundreds of excel to import into the database, if we use the excel import function provided by database editors such as navicat, it will be extremely tedious and time-consuming...
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...
1
by: nemocccc | last post by:
hello, everyone, I want to develop a software for my android phone for daily needs, any suggestions?
1
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...
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
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...

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.