G
Guest
hi - in my form's header I have 2 unbound combo boxes, cbo_A and cbo_B.
cbo_A's Row Source is A_ID, A_Name, A_Count all taken from qry_A. So far, so
good. In the AfterUpdate event I have the following code;
Me!cboB.RowSource = "SELECT B_ID, B_Name FROM tbl_B WHERE B_ID <
Me!cbo_A.column(2)";
I'm trying to restrict B_ID in cbo_B to values less than A_Count in cbo_A
(both are integers), but I just keep getting syntax errors. I don't think
I'm referring properly in the last part of the WHERE statement??? any
clues out there?
cbo_A's Row Source is A_ID, A_Name, A_Count all taken from qry_A. So far, so
good. In the AfterUpdate event I have the following code;
Me!cboB.RowSource = "SELECT B_ID, B_Name FROM tbl_B WHERE B_ID <
Me!cbo_A.column(2)";
I'm trying to restrict B_ID in cbo_B to values less than A_Count in cbo_A
(both are integers), but I just keep getting syntax errors. I don't think
I'm referring properly in the last part of the WHERE statement??? any
clues out there?