It's like what SteveH2508 said, it can't be done in a query. Nut it can be done using a query.
Conditional formatting on a continuous form can trigger the color for a record.
Let's sat that you have a field called severity. That field could have the following values: Minor, Major, Critical.
Right click on a control in the continuous form, choose conditional formatting.
You can trigger the color of the control by using the value of the corresponding field
If Field1 equals "Minor" then backgroundcolor = vbGreen.
etc.
Share & Enjoy