
I've been grappling with this all day and still get the overflow mgsbox - when I try & do a Sum on that 'Rate' value in the Report.
Here's the whole process this value is going through:
1. In the Table - there are 2 'Number' fields - Amount & Interest.
2. I run a query that Groups on Customers, Counts their Purchases/LoanAmounts, Sums their Balances, Sums the Interest paid on their Balances & Calculates Rate: ([PMInterest]/[PMBal])*100. This field in the query is a 'General Number', Decimal places 4. This query sorts for Previous Month transactions.
There are similar queries for YearToDate, PreviousMonth Last year etc . . .
3. Other queries return Customers, Balances & 'Rate' from the different Time periods. In this query, I have now got the 'Rate' for the PreviousMonth defined in Query View as 'General Number', Decimal Places 4.
Since some customers will not have any transactions in the prev month, I run the 'Rate' value through a function [within the query]:
Code:
Function Display_Average(Value_1) As Double
Dim First_Value As Double
Dim Result As String
First_Value = Nz(Value_1, 0)
If First_Value > 0 Then
Result = Format(((First_Value)), "0.0000")
Else
Result = 0.0001
End If
Display_Average = Result
End Function
Then I run a query to combine all the values for Every Customer for every time period.
This gives me a resultset that lists EVERY Customer down the left - and then presents their transactions for the different Time Periods across the page.
5. The Report runs off the final Query & lists all customers grouped by City. The Summing is for each City.
6. No problem at all till I try & do a 'Sum' on this one 'Rate' field. That's when I get the Overflow. It is still defined as a 'General Number' - Decimal 4. I have summed the Rate fields from other time periods and they Sum just fine[They do not have any empty rows, though].
I'm not sure if I've been clear about this or if I've left out important details.
I'd appreciate any help anyone can give me!!!
Thanks!
Robin