nanscombe,
Public Function controlColour(ByRef theControl as Variant, Byval theColorTag as String)
Dim theColor as long
theColor = Nz(DLookup("colorInfoField", "tblColorInfoTable", "colorTagField = '" & theColorTag & vbNullString & "'"), -1)
If theColor <> -1 then theControl.BackColor =...