scouser
Registered User.
- Local time
- Today, 14:04
- Joined
- Nov 25, 2003
- Messages
- 767
Guys, help me out as I lack the mind of a coder!! I have had a go, feel free to laugh at my attempt. So what do I want. When my order form opens I have a control that displays the current order status (either 'Open' or 'Closed'). If the order is closed I want the font to be 'Red' else I want it to be another colour.......My attempt as follows:
Basically open or closed the above displays all text in RED!!
Thanks in advance,
Phil.
Code:
Private Sub Form_Open(Cancel As Integer)
DoCmd.Maximize
If Me.OrderClosed = -1 Then
Me.OrderStatus.ForeColor = 255
Else
Me.OrderStatus.ForeColor = 16711680
End If
End Sub
Basically open or closed the above displays all text in RED!!
Thanks in advance,
Phil.