Afternoon people,
I have a "computer Locator" database I want to create where it will show customers where available compters are located, now I have tried conditional formatting and don't really want to type up hundreds/thousands of vba programming to say IF testbox = computer name (example),
I have found something that would be so much easier but need it to look through the whole query and highlight different colours. I have text boxes for the machines and have tagged them with there machine names
for example:
now at the moment the form has the query running as a continuous form and if I click on individual machine names the colour changes but I want all the controls to change depending on the query.
hope this makes sense.
I have a "computer Locator" database I want to create where it will show customers where available compters are located, now I have tried conditional formatting and don't really want to type up hundreds/thousands of vba programming to say IF testbox = computer name (example),
I have found something that would be so much easier but need it to look through the whole query and highlight different colours. I have text boxes for the machines and have tagged them with there machine names
for example:
Code:
Private sub form_Current()
Dim ctrl As Control
For Each ctrl In Me.Section(acHeader).Controls
If ctrl.Tag = [alog_host] Then
ctrl.BackColor = vbRed
Else
ctrl.BackColor = vbGreen
End If
Next
End Sub
hope this makes sense.