I have a Form called Compounds with a dropdown list (1) containing Codes. A second dropdown list (2) is linked to the 1st, and contains Group Names for the Code chosen. If the Group Name needed is not on this list the user can still add it but it will not appear in the Code table (but yes in the Compound table). The reason I don’t want it there yet is that it has to be confirmed as valid first. So how can I change the colour of dropdown list 2 (let’s say to red) when the name it contains is different from the ones of the Code. Or in other words, the Code has no such name.
Form: Compounds
Dropdown list 1. Shows the codes.
Combo586
Control Source: FracCode
Row Source: SELECT DISTINCT[List Frac code].FracCode FROM[List Frac code];
Limit to list: yes
Dropdown list 2. Shows the Group Names
Combo633
Control Source: GroupName
Row Source: SELECT DISTINCT[List Frac code].GroupName FROM[List Frac code] WHERE ([FracCode]=[combo586]) ORDER BY [GroupName];
Limit to list: no
Form: Compounds
Dropdown list 1. Shows the codes.
Combo586
Control Source: FracCode
Row Source: SELECT DISTINCT[List Frac code].FracCode FROM[List Frac code];
Limit to list: yes
Dropdown list 2. Shows the Group Names
Combo633
Control Source: GroupName
Row Source: SELECT DISTINCT[List Frac code].GroupName FROM[List Frac code] WHERE ([FracCode]=[combo586]) ORDER BY [GroupName];
Limit to list: no
Comment