Hi,
I'm new at using Microsoft Access (2003), and I've created a "MonthlyRep ort" query, which has functioned properly in the past and I update the table monthly as I update the data in the underlying table and query files. All the query does is to run some calculations from data inputed every month, and it aggregates the results of those calculations in the report.
I tried to run or display the report under both 'Layout' and 'Print' Preview and I get the error message "Overflow". I'm not sure how to fix the problem. I've searched the forum for answers, but it couldn't find a close-match to guide me how to troubleshoot this problem.
I would greatly appreciate some pointers on how to address this problem.
Here is the SQL I copied from my file.
Appreciate the prompt feedback in advance.
I'm new at using Microsoft Access (2003), and I've created a "MonthlyRep ort" query, which has functioned properly in the past and I update the table monthly as I update the data in the underlying table and query files. All the query does is to run some calculations from data inputed every month, and it aggregates the results of those calculations in the report.
I tried to run or display the report under both 'Layout' and 'Print' Preview and I get the error message "Overflow". I'm not sure how to fix the problem. I've searched the forum for answers, but it couldn't find a close-match to guide me how to troubleshoot this problem.
I would greatly appreciate some pointers on how to address this problem.
Here is the SQL I copied from my file.
Code:
SELECT [2008Net_qry].GroupCode, PeerComp_tbl.GroupName, [2008Net_qry].FundID, IIf(PeerSet_tbl!PeerSet Is Not Null,"*","") AS PR, PeerComp_tbl.Type, PeerSet_tbl.PeerSet, IIf([2008Net_qry]!GroupCode="AGF","AGF","") AS Flag, [2008Net_qry].FundName, [2008Net_qry].IFSCType, [2008Net_qry].NetAssets, [2008Net_qry].Asset_Rank, [2008Net_qry]![2008_08_tbl.NewMo] AS CrntNet, IIf(IsNull([2008Net_qry]![2008_08_tbl.NewMo]),0,1) AS CrntNetFlag, [2008Net_qry]![2008_08_tbl.Net_Rank] AS CrntNetRnk, [2008Net_qry]![2008_07_tbl.NewMo] AS LstMNet, IIf(IsNull([2008Net_qry]![2008_07_tbl.NewMo]),0,1) AS LstMNetFlag, [2008Net_qry]![2008_07_tbl.Net_Rank] AS LstMNetRnk, [2008Net_qry]![2008_06_tbl.NewMo] AS 3mAgoNet, IIf(IsNull([2008Net_qry]![2008_06_tbl.NewMo]),0,1) AS 3mAgoNetFlag, nz([2008Net_qry]![2008_08_tbl.NewMo])+nz([2008Net_qry]![2008_07_tbl.NewMo])+nz([2008Net_qry]![2008_06_tbl.NewMo])+nz([2008Net_qry]![2008_05_tbl.NewMo])+nz([2008Net_qry]![2008_04_tbl.NewMo])+nz([2008Net_qry]![2008_03_tbl.NewMo])+nz([2008Net_qry]![2008_02_tbl.NewMo])+nz([2008Net_qry]![2008_01_tbl.NewMo])+0 AS CrntNetYTD, nz([2007Net_qry]![2007_08_tbl.NewMo])+nz([2007Net_qry]![2007_07_tbl.NewMo])+nz([2007Net_qry]![2007_06_tbl.NewMo])+nz([2007Net_qry]![2007_05_tbl.NewMo])+nz([2007Net_qry]![2007_04_tbl.NewMo])+nz([2007Net_qry]![2007_03_tbl.NewMo])+nz([2007Net_qry]![2007_02_tbl.NewMo])+nz([2007Net_qry]![2007_01_tbl.NewMo])+0 AS LstNetYTD, [2007Net_qry]![Net 2007] AS LstNetTtl, [2007Net_qry]!NetRnkCat AS LstNetTtlRnk, [2008Gross_qry]![2008_08_tbl.GrossSales] AS CrntGrs, IIf(IsNull([2008Gross_qry]![2008_08_tbl.GrossSales]),0,1) AS CrntGrsFlag, [2008Gross_qry]![2008_08_tbl.Gross_Rank] AS CrntGrsRnk, [2008Gross_qry]![2008_07_tbl.GrossSales] AS LstMGrs, IIf(IsNull([2008Gross_qry]![2008_07_tbl.GrossSales]),0,1) AS LstMGrsFlag, [2008Gross_qry]![2008_07_tbl.Gross_Rank] AS LstMGrsRnk, [2008Gross_qry]![2008_06_tbl.GrossSales] AS 3mAgoGrs, IIf(IsNull([2008Gross_qry]![2008_06_tbl.GrossSales]),0,1) AS 3mAgoGrsFlag, nz([2008Gross_qry]![2008_08_tbl.GrossSales])+nz([2008Gross_qry]![2008_07_tbl.GrossSales])+nz([2008Gross_qry]![2008_06_tbl.GrossSales])+nz([2008Gross_qry]![2008_05_tbl.GrossSales])+nz([2008Gross_qry]![2008_04_tbl.GrossSales])+nz([2008Gross_qry]![2008_03_tbl.GrossSales])+nz([2008Gross_qry]![2008_02_tbl.GrossSales])+nz([2008Gross_qry]![2008_01_tbl.GrossSales])+0 AS CrntGrsYTD, nz([2007Gross_qry]![2007_08_tbl.GrossSales])+nz([2007Gross_qry]![2007_07_tbl.GrossSales])+nz([2007Gross_qry]![2007_06_tbl.GrossSales])+nz([2007Gross_qry]![2007_05_tbl.GrossSales])+nz([2007Gross_qry]![2007_04_tbl.GrossSales])+nz([2007Gross_qry]![2007_03_tbl.GrossSales])+nz([2007Gross_qry]![2007_02_tbl.GrossSales])+nz([2007Gross_qry]![2007_01_tbl.GrossSales])+0 AS LstGrsYTD, [2007Gross_qry]![Gross 2007] AS LstGrsTtl, [2007Gross_qry]!GrsRnkCat AS LstGrsTtlRnk, [2006Net_qry]![Net 2006] AS 3yrAgoNetTtl, [2006Gross_qry]![Gross 2006] AS 3yrAgoGrsTtl, [2007Net_qry]![2007_08_tbl.NewMo] AS YrAgoNet, [2007Gross_qry]![2007_08_tbl.GrossSales] AS YrAgoGrs FROM ((((((2008Net_qry LEFT JOIN 2006Net_qry ON [2008Net_qry].FundID = [2006Net_qry].FundID) LEFT JOIN 2007Net_qry ON [2008Net_qry].FundID = [2007Net_qry].FundID) LEFT JOIN 2007Gross_qry ON [2008Net_qry].FundID = [2007Gross_qry].FundID) LEFT JOIN PeerSet_tbl ON [2008Net_qry].FundID = PeerSet_tbl.FundID) LEFT JOIN PeerComp_tbl ON [2008Net_qry].GroupCode = PeerComp_tbl.GroupCode) LEFT JOIN 2008Gross_qry ON [2008Net_qry].FundID = [2008Gross_qry].FundID) LEFT JOIN 2006Gross_qry ON [2008Net_qry].FundID = [2006Gross_qry].FundID;
Comment