alktrigger
Aimless Extraordinaire
- Local time
- Today, 15:05
- Joined
- Jun 9, 2009
- Messages
- 124
I'm trying to create a query to create that counts the fields in other queries. I can count any field from any individual query with no problems, but as soon as I add another query to count, it gives produces a single abnormal total across all fields.
When I run this code, it produces a single column with the value "9", which is the actual number of entries
But as soon as I add the second query, it comes up with the value of "72" in both columns. It doesn't matter which fields I am counting, it just puts all the values at "72", keep in mind that the second query only has 8 entries. The following is the code when I am bringing the second query into play:
What could be going wrong?
When I run this code, it produces a single column with the value "9", which is the actual number of entries
Code:
SELECT Count(sqyWeek1Count.SumOfReceived) AS CountOfSumOfReceived
FROM sqyWeek1Count;
But as soon as I add the second query, it comes up with the value of "72" in both columns. It doesn't matter which fields I am counting, it just puts all the values at "72", keep in mind that the second query only has 8 entries. The following is the code when I am bringing the second query into play:
Code:
SELECT Count(sqyWeek1Count.SumOfReceived) AS CountOfSumOfReceived,
Count(sqyWeek2Count.SumOfReceived) AS CountOfSumOfReceived1
FROM sqyWeek1Count, sqyWeek2Count;
What could be going wrong?