I have a continuous form that has a command button on it that opens another form (based on a query on another table) where the PK of the first form and second form match, so the second form only shows data relating to the record we're on in the continuous form.
What I want to achieve is for the command button to be a different colour to normal if there is any records found for the second form - IE, if there's no linked data from the query, leave the button normal, if there's any records found in the query (that would be shown in the form) then the button should be a different colour.
I hope I've explained myself clearly enough!
Thanks!
So, if you implement a code to change any property e.g. forecolor of the button, the same property is applied to all.
Ed