I have one combo box that is dependent on a second box. I have read the articles on how to do this I am curious why referring to the column in a query doesn't work.
This works in a RowSource on a Combo Box
SELECT tbl_IP_Profile.AssemblyCode, tbl_IP_Profile.LineID FROM tbl_IP_Profile WHERE (((tbl_IP_Profile.AssemblyCode)=[Forms]![frm_ReportProduction]![cbo_ProdDivision]));
When I change the select statement to:
SELECT tbl_IP_Profile.AssemblyCode, tbl_IP_Profile.LineID FROM tbl_IP_Profile WHERE (((tbl_IP_Profile.AssemblyCode)=[Forms]![frm_ReportProduction]![cbo_ProdDivision].Column(0)));
I get the following error.
Undefined function!frm_ReportProduction!cbo_ProdDivision.column in expression
Razor1
This works in a RowSource on a Combo Box
SELECT tbl_IP_Profile.AssemblyCode, tbl_IP_Profile.LineID FROM tbl_IP_Profile WHERE (((tbl_IP_Profile.AssemblyCode)=[Forms]![frm_ReportProduction]![cbo_ProdDivision]));
When I change the select statement to:
SELECT tbl_IP_Profile.AssemblyCode, tbl_IP_Profile.LineID FROM tbl_IP_Profile WHERE (((tbl_IP_Profile.AssemblyCode)=[Forms]![frm_ReportProduction]![cbo_ProdDivision].Column(0)));
I get the following error.
Undefined function!frm_ReportProduction!cbo_ProdDivision.column in expression
Razor1