RichardMGreen
Well-known Member
- Joined
- Feb 20, 2006
- Messages
- 2,177
Hi all
I've got some nested queries that should work (famous last words).
All the sub-queries return the correct values (in this case 8 records for the month), but this is not showing on the final query which outputs an amalgamated total.
The SQL for the final query is:-
As you can see, there are no links (and none are necessary as far as I can make out) as it is just displaying totals already calculated in previous queries.
Can anyone make any suggestions as to why it's not pulliong through any data?
I've got some nested queries that should work (famous last words).
All the sub-queries return the correct values (in this case 8 records for the month), but this is not showing on the final query which outputs an amalgamated total.
The SQL for the final query is:-
Code:
SELECT qry_Monthly_Client_Referrals_Total.CountOfClientId AS Monthly_Referrals, qry_Monthly_Client_Successful_Referrals_Total.CountOfClientId AS Monthly_Successful_Referrals, qry_YTD_Client_Referrals_Total.CountOfClientId AS YTD_Referrals, qry_YTD_Client_Successful_Referrals_Total.CountOfClientId AS YTD_Successful_Referrals
FROM qry_Monthly_Client_Successful_Referrals_Total, qry_Monthly_Client_Referrals_Total, qry_YTD_Client_Referrals_Total, qry_YTD_Client_Successful_Referrals_Total;
As you can see, there are no links (and none are necessary as far as I can make out) as it is just displaying totals already calculated in previous queries.
Can anyone make any suggestions as to why it's not pulliong through any data?