highlight row depending on what drop down box says (1 Viewer)

murray83

Games Collector
Local time
Today, 12:07
Joined
Mar 31, 2017
Messages
728
i would like the attached to behave like the following

when status is sent to waiting whole row is highlighted red when done set to green

here is my attempt with a bit of pusdocode

Code:
Private Sub Status_Change()
If satus = ("Done") Then 'row = green
If satus = ("Witing") Then 'row = red
End If
End Sub
 

Attachments

  • trailer move idea.accdb
    896 KB · Views: 27

murray83

Games Collector
Local time
Today, 12:07
Joined
Mar 31, 2017
Messages
728
im at work and youtube is blocked could you put it into code or would it just be easy to google it ?
 

Minty

AWF VIP
Local time
Today, 12:07
Joined
Jul 26, 2013
Messages
10,371
Typical - I never link to videos normally my bad...
https://access-programmers.co.uk/forums/showthread.php?t=104795 This thread should help.

Try in the field with your status first, then either apply it to a blank text box behind your row or apply it to every text box - be warned if you have a lot of records the second method can make screen updating slow.
 

murray83

Games Collector
Local time
Today, 12:07
Joined
Mar 31, 2017
Messages
728
ok have found and inputted the following

Code:
Private Sub Form_Current()
If Me.Status = "Done" Then
Me.Detail.BackColor = vbGreen
Else
Me.Detail.BackColor = vbRed
End If
End Sub

but it changes the detail on the form not the row on the table it looks ok but would rather it do the row on the table
 

Attachments

  • trailer move idea.accdb
    896 KB · Views: 28

murray83

Games Collector
Local time
Today, 12:07
Joined
Mar 31, 2017
Messages
728
cheers minty that second link worked a charm
 

Users who are viewing this thread

Top Bottom