Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations gkittelson on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

How can I assign a color & combo option to one record? 1

Status
Not open for further replies.

lebanoncedars

Programmer
Jul 17, 2002
43
CA
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
 
Hi

Try
in the downloads section there is code which may allow you to do this, but as I already said it is not standard A97 functionality

Hope this helps

Ken Reay
Freelance Solutions Developer
Boldon Information Systems Ltd
UK
kenneth.reaySPAMNOT@talk21.com
remove SPAMNOT to use
 
Hi Kinreay,
I have office xp by the way.

So anyway I will at that site .
Thanks kindly
L.cedars
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top