I have a frmDispatch (continuous) for the dispatchers that displays a text box (Contol Source, Combo Box from frmOrderHistory) showing the type of equipment assigned to the load. There are 23 different types of equipment in the ComboBox and there is really no reason to color the text box on the frmDispatch for every type of equipment. However, a common error by the dispatchers is when a particular type of equipment is assigned without noting the “class” of the equipment. Knowing that there are only three options within “Conditional Formatting”, I went to the table where the ComboBox gets its equipment types and amended the entries to include the word “only” in their descriptive names. My “logic” was that I could use “Conditional Formatting” to look only for the “only” text in the box. So much for logic. What I would like to do is color the text box red, and the font color to white, for any equipment type that includes the word “only” in the text.
I tried using the “Expression Is” statement with the following:
Like”&only&”
I also tried this from the “Field Value Is” statement. In both cases I got a syntax error.
I’m just beginning to learn the basics of VBA and would actually prefer to write the conditional statement rather than use the “wizard”, but I’m afraid I’m over my head. Each challenge is a learnng experiance, so I’d really like to figure out code to accomplish this seemingly simple task.