Hi,
I was wondering if anybody can assist me with this.
I have a report I have created for Income as per the attached .xls.
At the moment it is showing values for the whole year.
What I will be doing is creating a parameter form similar to the one attached(.xls file) to select the dates as I only want on one page 6 months’ worth of data which has now lead me to a couple of issues I am not sure about.
Firstly I would like to create Interest, Comp Fees, Raffle, RSL Grant Balance etc. similar to the Balance at December 31.
Balance at March 31, Balance at June 30, Balance at September 30, Balance at December 31
The query that I have created so far to run this report on is below
SELECT DISTINCT Tbl_Main.MainDate, Tbl_Main.ReceiptCheque, [ReceiptCheque] & " " & [ReceiptChequeNumber] AS DescExpr, Sum(IIf([Description]="interest",[Amount],0)) AS INTEREST, Sum(IIf([Description]="Comp Fees",[Amount],0)) AS [COMP FEES], Sum(IIf([Description]="Raffle",[Amount],0)) AS RAFFLE, Sum(IIf([Description]="RSL Grant",[Amount],0)) AS [RSL GRANT], Sum(IIf([Description]="Membership Fees",[Amount],0)) AS [MEMBERSHIP FEES], Sum(IIf([Description]="Functions",[Amount],0)) AS FUNCTIONS, Sum(IIf([Description]="Other",[Amount],0)) AS OTHER, [INTEREST]+[COMP FEES]+[RAFFLE]+[RSL GRANT]+[MEMBERSHIP FEES]+[FUNCTIONS]+[OTHER] AS TOTAL, Tbl_Main.Reconciled, Tbl_Main.Reconciled1, Qry_TotalReceiptAndExpenditureAmounts.TotalIncome, Qry_TotalReceiptAndExpenditureAmounts.TotalExpenditure, Qry_TotalReceiptAndExpenditureAmounts.Balance
FROM Qry_TotalReceiptAndExpenditureAmounts, Tbl_Main INNER JOIN Tbl_Receipt ON Tbl_Main.MainID = Tbl_Receipt.MainID
GROUP BY Tbl_Main.MainDate, Tbl_Main.ReceiptCheque, [ReceiptCheque] & " " & [ReceiptChequeNumber], Tbl_Main.Reconciled, Tbl_Main.Reconciled1, Qry_TotalReceiptAndExpenditureAmounts.TotalIncome, Qry_TotalReceiptAndExpenditureAmounts.TotalExpenditure, Qry_TotalReceiptAndExpenditureAmounts.Balance
HAVING (((Tbl_Main.ReceiptCheque)="CARRY OVER BALANCE" Or (Tbl_Main.ReceiptCheque)="CREDIT" Or (Tbl_Main.ReceiptCheque)="NOT PLAYED" Or (Tbl_Main.ReceiptCheque)="RECEIPT"));
Also I have on the bottom of the page Fields Yearly Expenditure and Carry Over Balance as per B/S but I only want to see this on the page that contains July through to December.
Thanking anyone who can assist me with this.
I was wondering if anybody can assist me with this.
I have a report I have created for Income as per the attached .xls.
At the moment it is showing values for the whole year.
What I will be doing is creating a parameter form similar to the one attached(.xls file) to select the dates as I only want on one page 6 months’ worth of data which has now lead me to a couple of issues I am not sure about.
Firstly I would like to create Interest, Comp Fees, Raffle, RSL Grant Balance etc. similar to the Balance at December 31.
Balance at March 31, Balance at June 30, Balance at September 30, Balance at December 31
The query that I have created so far to run this report on is below
SELECT DISTINCT Tbl_Main.MainDate, Tbl_Main.ReceiptCheque, [ReceiptCheque] & " " & [ReceiptChequeNumber] AS DescExpr, Sum(IIf([Description]="interest",[Amount],0)) AS INTEREST, Sum(IIf([Description]="Comp Fees",[Amount],0)) AS [COMP FEES], Sum(IIf([Description]="Raffle",[Amount],0)) AS RAFFLE, Sum(IIf([Description]="RSL Grant",[Amount],0)) AS [RSL GRANT], Sum(IIf([Description]="Membership Fees",[Amount],0)) AS [MEMBERSHIP FEES], Sum(IIf([Description]="Functions",[Amount],0)) AS FUNCTIONS, Sum(IIf([Description]="Other",[Amount],0)) AS OTHER, [INTEREST]+[COMP FEES]+[RAFFLE]+[RSL GRANT]+[MEMBERSHIP FEES]+[FUNCTIONS]+[OTHER] AS TOTAL, Tbl_Main.Reconciled, Tbl_Main.Reconciled1, Qry_TotalReceiptAndExpenditureAmounts.TotalIncome, Qry_TotalReceiptAndExpenditureAmounts.TotalExpenditure, Qry_TotalReceiptAndExpenditureAmounts.Balance
FROM Qry_TotalReceiptAndExpenditureAmounts, Tbl_Main INNER JOIN Tbl_Receipt ON Tbl_Main.MainID = Tbl_Receipt.MainID
GROUP BY Tbl_Main.MainDate, Tbl_Main.ReceiptCheque, [ReceiptCheque] & " " & [ReceiptChequeNumber], Tbl_Main.Reconciled, Tbl_Main.Reconciled1, Qry_TotalReceiptAndExpenditureAmounts.TotalIncome, Qry_TotalReceiptAndExpenditureAmounts.TotalExpenditure, Qry_TotalReceiptAndExpenditureAmounts.Balance
HAVING (((Tbl_Main.ReceiptCheque)="CARRY OVER BALANCE" Or (Tbl_Main.ReceiptCheque)="CREDIT" Or (Tbl_Main.ReceiptCheque)="NOT PLAYED" Or (Tbl_Main.ReceiptCheque)="RECEIPT"));
Also I have on the bottom of the page Fields Yearly Expenditure and Carry Over Balance as per B/S but I only want to see this on the page that contains July through to December.
Thanking anyone who can assist me with this.