I have a form with a combo box & a checkbox (chkClosed). For the combo box I have put the row source as a select query. It has two fields (both from Table1): Field1, Field2 (not shown) & its criteria is [Forms]!Form1]![chkClosed]
Table1 example data:
Field1 Field2
Test -1
Test1 0
Test2 0
Test3 -1
Problem is that when I uncheck chkClosed at runtime the dropdown list doesn’t change. I know its evaluating it correctly though as if I switch to design then back to form view while its checked it shows Test & Test3 in dropdown list & vice versa. Just time it evaluates it is at startup rather than constantly, I am sure I will have to change something with events. This is just an example, the data I am doing is actually from a SQL source, but the logic still applies I just use criteria: IIf([Forms]![Form1]![chkClosed]=-1,1,0)
You need to requery the combo box to update the row source. In the checkbox’s AfterUpdate event, add the following line: