Not really sure what you're trying to do as your terms are confusing. AFAIK:
- a form cannot contain a report
- the event you're using is specific to a form, not a report as you state.
- those colour values are of Long data type although I believe Access will recognize &HBA1419 for example, but not if contained within quotes, which denote text values
- a continuous form seldom/never works with this sort of manipulation as the controls are repeated as rows, hence the problem is properties propagate to all rows. Conditional formatting would probably provide greater success, but still requires some sort of hack.
- not sure if you're referring to toggle or command buttons. Either way, older Access versions don't allow this, but again, there are hacks.
.Dirty is a property of a form or report indicating whether or not the has changed but (at least in the case of forms) has not been saved. Up until now, I didn't realize it was a report property as well. Your best bet is probably to either
- use conditional formatting for an unbound textbox that is positioned under the control(s) you want to colour, lock it, remove it from the tab order, remove its borders and set it to be flat. Then you can set its backcolor property according to the value of a field in the record.
OR
- if we're talking about a command button, try using images (coloured rectangles) and swapping them based on a record field value. Not sure conditional formatting is possible in this case, unless maybe it's done via vba.
The more we hear silence, the more we begin to think about our value in this universe.
Paraphrase of Professor Brian Cox.