lebanoncedars
Programmer
Hi there,
Anyone knows How can I assign color and combo box option to one record ONLY in continous form?
this is my code:
Private Sub Status_Click()
Status.ForeColor = vbBlack
text0.ForeColor = vbVlack
text0 = Status
Select Case Me.Status
Case "Dispatched" 'Order to be dispatched
text0.BackColor = vbRed
text0.ForeColor = vbBlack
Me.text0 = "Dispatched"
Case "Picked Up" 'Order Dispatched
text0.BackColor = vbGreen
text0.ForeColor = vbBlack
Me.text0 = "Picked Up"
Case "Cleared" 'Order cleared
text0.BackColor = vbCyan
text0.ForeColor = vbBlack
Me.text0 = "Cleared"
Case "to be Invoiced" 'Order invoiced
text0.BackColor = vbBlue
text0.ForeColor = vbBlack
Me.text0 = "to be Invoiced"
Case Else
Status.ForeColor = vbWhite
text0.ForeColor = vbWhite
End Select
End Sub
thank you
Lebanoncedars
Anyone knows How can I assign color and combo box option to one record ONLY in continous form?
this is my code:
Private Sub Status_Click()
Status.ForeColor = vbBlack
text0.ForeColor = vbVlack
text0 = Status
Select Case Me.Status
Case "Dispatched" 'Order to be dispatched
text0.BackColor = vbRed
text0.ForeColor = vbBlack
Me.text0 = "Dispatched"
Case "Picked Up" 'Order Dispatched
text0.BackColor = vbGreen
text0.ForeColor = vbBlack
Me.text0 = "Picked Up"
Case "Cleared" 'Order cleared
text0.BackColor = vbCyan
text0.ForeColor = vbBlack
Me.text0 = "Cleared"
Case "to be Invoiced" 'Order invoiced
text0.BackColor = vbBlue
text0.ForeColor = vbBlack
Me.text0 = "to be Invoiced"
Case Else
Status.ForeColor = vbWhite
text0.ForeColor = vbWhite
End Select
End Sub
thank you
Lebanoncedars