Lifeseeker
Registered User.
- Local time
- Today, 12:50
- Joined
- Mar 18, 2011
- Messages
- 273
Hi,
I have the following code working in Access:
SELECT Count(regular_ct_scan_evidence) AS A, (select count(phn) from tbl_ed_data_collection_record) AS B, A/B AS Rate
FROM tbl_ed_data_collection_record
WHERE (tbl_ed_data_collection_record.Regular_CT_Scan_Evidence)="Yes";
If I want to add one more column to be used as a criteria to specify the time stamp as well, I couldn't do it in query grid. When I tried to run the query, it says....."you cannot execute a query that does not include the specified expression in the aggregate function".
Is there any way around it?
Thank you
I have the following code working in Access:
SELECT Count(regular_ct_scan_evidence) AS A, (select count(phn) from tbl_ed_data_collection_record) AS B, A/B AS Rate
FROM tbl_ed_data_collection_record
WHERE (tbl_ed_data_collection_record.Regular_CT_Scan_Evidence)="Yes";
If I want to add one more column to be used as a criteria to specify the time stamp as well, I couldn't do it in query grid. When I tried to run the query, it says....."you cannot execute a query that does not include the specified expression in the aggregate function".
Is there any way around it?
Thank you