mattsteele8
Registered User.
- Local time
- Today, 18:17
- Joined
- Mar 18, 2009
- Messages
- 11
hi,
trying to get a running total at the end of the following query with not much luck
SELECT [2008_NSLSP_NF_P_RATES].NSLSP_id, [2008_NSLSP_NF_P_RATES].Postal_Sector, [2008_NSLSP_NF_P_RATES].Postal_Sector_Population, [2008_NSLSP_NF_P_RATES].[2007_Shopper_Population], ([2007_shopper_population]/[postal_sector_population])*100 AS PenetrationPercent, ([2008_NSLSP_NF_P_rates]![2007_shopper_population]/[qryShopperPopTotal]![SumOf2007_Shopper_Population])*100 AS PercentTotalShoppers, DSum("PercentTotalShopper","qryFSP_Catchment_Definitions","[PenetrationPercent]>=" & [PenetrationPercent]) AS RunningSum
FROM 2008_NSLSP_NF_P_RATES LEFT JOIN qryShopperPopTotal ON [2008_NSLSP_NF_P_RATES].NSLSP_id = qryShopperPopTotal.NSLSP_id
WHERE ((([2008_NSLSP_NF_P_RATES].NSLSP_id)=963))
ORDER BY ([2007_shopper_population]/[postal_sector_population])*100 DESC;
all fields on the running total just come up with an #Error
cheers
trying to get a running total at the end of the following query with not much luck
SELECT [2008_NSLSP_NF_P_RATES].NSLSP_id, [2008_NSLSP_NF_P_RATES].Postal_Sector, [2008_NSLSP_NF_P_RATES].Postal_Sector_Population, [2008_NSLSP_NF_P_RATES].[2007_Shopper_Population], ([2007_shopper_population]/[postal_sector_population])*100 AS PenetrationPercent, ([2008_NSLSP_NF_P_rates]![2007_shopper_population]/[qryShopperPopTotal]![SumOf2007_Shopper_Population])*100 AS PercentTotalShoppers, DSum("PercentTotalShopper","qryFSP_Catchment_Definitions","[PenetrationPercent]>=" & [PenetrationPercent]) AS RunningSum
FROM 2008_NSLSP_NF_P_RATES LEFT JOIN qryShopperPopTotal ON [2008_NSLSP_NF_P_RATES].NSLSP_id = qryShopperPopTotal.NSLSP_id
WHERE ((([2008_NSLSP_NF_P_RATES].NSLSP_id)=963))
ORDER BY ([2007_shopper_population]/[postal_sector_population])*100 DESC;
all fields on the running total just come up with an #Error
cheers