{RESOLVED} and THANK YOU Continuous Form...
'************UPADTE 20/07/2004***********************
THANK YOU ALL FOR YOUR GUIDANCE, I'VE DECIDED TO OVERLAY A
A TRANSPARANT FIELD, FORMATTED IN RED WITH AN IIF STATEMENT
AS PER ADVICE. MUCH APPRECIATED. CYA
'***********************************************
hi all,
i have a continuous form that displays a data set, what i would like to do is based on the contents of a specific field change the back color of another field on the same form. The code sample works to change the field color to blue but as soon as the condition changes on the form the false part of the statement isnt met. (changing the field to vbred) Any help would be greatly appreciated. Code sample is below:
thanks
Private Sub Form_Current()
If Me.txtDelCompIndicator = "J" Then
Me.txtExpiryDate.BackColor = vbBlue
ElseIf Me.txtDelCompIndicator <> "J" And bcheckDate(Me.txtExpiryDate) = True Then
Me.txtExpiryDate.BackColor = vbRed
End If
End Sub
'************UPADTE 20/07/2004***********************
THANK YOU ALL FOR YOUR GUIDANCE, I'VE DECIDED TO OVERLAY A
A TRANSPARANT FIELD, FORMATTED IN RED WITH AN IIF STATEMENT
AS PER ADVICE. MUCH APPRECIATED. CYA
'***********************************************
hi all,
i have a continuous form that displays a data set, what i would like to do is based on the contents of a specific field change the back color of another field on the same form. The code sample works to change the field color to blue but as soon as the condition changes on the form the false part of the statement isnt met. (changing the field to vbred) Any help would be greatly appreciated. Code sample is below:
thanks
Private Sub Form_Current()
If Me.txtDelCompIndicator = "J" Then
Me.txtExpiryDate.BackColor = vbBlue
ElseIf Me.txtDelCompIndicator <> "J" And bcheckDate(Me.txtExpiryDate) = True Then
Me.txtExpiryDate.BackColor = vbRed
End If
End Sub
Last edited: