jt463
IS-IT--Management
- Nov 23, 2005
- 134
My report runs several calculations when it opens and then displays the data. Just before the report is previewed or printed, I would like to insert code that will look at one of the calculated fields and analyze it to see if the value is greater than or less than 0.
If it is less than zero, I want the field value to be "None". If it is greater than zero, I want it to display the actual value.
I believe this would be the code:
However, when I place it in the 'Open' Procedure, I don't believe the calculations have processed. (I get a VB Error that says 'You have entered an expression that has no value'.) So, I am trying to insert it AFTER the calculations process but BEFORE the report is displayed.
Any help would be greatly appreciated!
If it is less than zero, I want the field value to be "None". If it is greater than zero, I want it to display the actual value.
I believe this would be the code:
Code:
If Me.InitialPayment.Value < 0 Then
Me.InitialPayment.Value = "None"
Else
End If
However, when I place it in the 'Open' Procedure, I don't believe the calculations have processed. (I get a VB Error that says 'You have entered an expression that has no value'.) So, I am trying to insert it AFTER the calculations process but BEFORE the report is displayed.
Any help would be greatly appreciated!