I've looked at several other posts relating to this issue but all are different from my needs.
I have a form with a combo box on it. The combo box row source is a table. The combo box has times in it, i.e; 6:30am, 8:30am, 10:30am, 12:30pm, 2:30pm, end-days. Underneath that list, is a similiar list for nightshift. The worker selects the combo box and clicks on whatever time is needed for the record.
I'd like to make the listing for the 6:30am to end-days appear with a background color of yellow (daytime) and a font color of black and the 4:30pm to end-nights listing to appear with a black background with white font (or similar colors, would have to see how they look on the form/monitor)
I tried to do conditional formatting, using both the value of and expression of, using both a "" and [] around the times variables, but nothing changes.
Would this be handled by conditional formatting on the combo box, or VBA code in a form event?
thank you in advance for any help
chris
I have a form with a combo box on it. The combo box row source is a table. The combo box has times in it, i.e; 6:30am, 8:30am, 10:30am, 12:30pm, 2:30pm, end-days. Underneath that list, is a similiar list for nightshift. The worker selects the combo box and clicks on whatever time is needed for the record.
I'd like to make the listing for the 6:30am to end-days appear with a background color of yellow (daytime) and a font color of black and the 4:30pm to end-nights listing to appear with a black background with white font (or similar colors, would have to see how they look on the form/monitor)
I tried to do conditional formatting, using both the value of and expression of, using both a "" and [] around the times variables, but nothing changes.
Would this be handled by conditional formatting on the combo box, or VBA code in a form event?
thank you in advance for any help
chris