P
Pantelis
I have a form with some sum calculation frames in the
footer.
This form opens in snapshot view.
I want to control the color of the fonts, of the sum frame
(forecolor property),depended on the value of the sum.
I use the following code which work fine if it's attached
with form's events like "On Focus, On Click etc." but does
not work with the form's events "On Open, or On Load" so I
can't have the desired result when I open the form.
It seem's that the values are calculated after these
events.
-------------------------------
Dim varTotal As Variant
Set varTotal = fraTotal 'fraTotal is the summing frame
which I want to control the ForeColor property
If varTotal < 0 Then
Me!fraTotal.ForeColor = 255
Else
Me!fraTotal.ForeColor = 0
End If
footer.
This form opens in snapshot view.
I want to control the color of the fonts, of the sum frame
(forecolor property),depended on the value of the sum.
I use the following code which work fine if it's attached
with form's events like "On Focus, On Click etc." but does
not work with the form's events "On Open, or On Load" so I
can't have the desired result when I open the form.
It seem's that the values are calculated after these
events.
-------------------------------
Dim varTotal As Variant
Set varTotal = fraTotal 'fraTotal is the summing frame
which I want to control the ForeColor property
If varTotal < 0 Then
Me!fraTotal.ForeColor = 255
Else
Me!fraTotal.ForeColor = 0
End If