I have an Access report with a calculated field called txtrptage. It is calculated using the DateDiff function in the Control Source property of txtrptage. If it calculates to a number less than zero, I want it to display **** instead of the negative number. I put the following code in the Format event of the Detail section:
If txtrptage < 0 Then
Me.txtrptage = "****"
End If
I get a run time error that says "You can't assign a value to this object".
Can anybody help?
Thanks so much.
If txtrptage < 0 Then
Me.txtrptage = "****"
End If
I get a run time error that says "You can't assign a value to this object".
Can anybody help?
Thanks so much.