![]() | |
![]() |
| | Thread Tools | Search this Thread | Display Modes |
#1
| |||
| |||
|
#2
| |||
| |||
|
|
I am trying to make a query and I am stuck. There probably is a simple solution to this so hopefully one of you can help. Here is what I want to do: I have a table that has 2 fields (Test Type and Date Performed). The table is populated with 6 or 7 different test types and the date each was performed. Each test type will be performed a bunch of times so there will be more than one entry for each type. What I want to do is count the number of tests for a certain test type performed before a specified date and count the ones performed after that date. Is there an easy way to do this? Thanks. |
#3
| |||
| |||
|
|
I am trying to make a query and I am stuck. There probably is a simple solution to this so hopefully one of you can help. Here is what I want to do: I have a table that has 2 fields (Test Type and Date Performed). The table is populated with 6 or 7 different test types and the date each was performed. Each test type will be performed a bunch of times so there will be more than one entry for each type. What I want to do is count the number of tests for a certain test type performed before a specified date and count the ones performed after that date. Is there an easy way to do this? Thanks. |
#4
| |||
| |||
|
|
I am trying to make a query and I am stuck. There probably is a simple solution to this so hopefully one of you can help. Here is what I want to do: I have a table that has 2 fields (Test Type and Date Performed). The table is populated with 6 or 7 different test types and the date each was performed. Each test type will be performed a bunch of times so there will be more than one entry for each type. What I want to do is count the number of tests for a certain test type performed before a specified date and count the ones performed after that date. Is there an easy way to do this? Thanks. |
#5
| |||
| |||
|
|
"Brian" <Brian.Kibler (AT) gmail (DOT) com> wrote in message news:c86d49c7-3399-4d4a-afe4-e5c39a24c4f4 @i12g2000prf.googlegroups. com... Fred, I tried yours and it worked so thanks for the help. I just have one issue with it. How can I make it fill in a zero if there are no tests of a certain type before/after the desired date? Right now it just gives a blank field. Unfortunately I do not know how to do that. If you use the query in a form or report, then you can use the Nz() function to display zeros. Fred Zuckerman The Nz() function should work in the query. Try |
#6
| |||
| |||
|
#7
| |||
| |||
|
|
Fred, I tried yours and it worked so thanks for the help. I just have one issue with it. How can I make it fill in a zero if there are no tests of a certain type before/after the desired date? Right now it just gives a blank field. |
#8
| |||
| |||
|
|
"Fred Zuckerman" <ZuckermanF (AT) sbcglobal (DOT) net> wrote in news:kH6fj.82183$Um6.46166 (AT) newssvr12 (DOT) news.prodigy.net: "Brian" <Brian.Kibler (AT) gmail (DOT) com> wrote in message news:c86d49c7-3399-4d4a-afe4-e5c39a24c4f4 @i12g2000prf.googlegroups. com... Fred, I tried yours and it worked so thanks for the help. I just have one issue with it. How can I make it fill in a zero if there are no tests of a certain type before/after the desired date? Right now it just gives a blank field. Unfortunately I do not know how to do that. If you use the query in a form or report, then you can use the Nz() function to display zeros. Fred Zuckerman The Nz() function should work in the query. Try TRANSFORM Nz(Count(tblTests.[test type]),0) AS TestCount -- Bob Quintal PA is y I've altered my email address. -- Posted via a free Usenet account from http://www.teranews.com |
![]() |
| Thread Tools | Search this Thread |
| Display Modes | |
| |