Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations bkrike on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

using combo columns ina query

Status
Not open for further replies.

Nialler

Programmer
Feb 25, 2002
11
IE
Hi
I'm trying to run a query which gets it criteria from the second column in a combo box but I keep getting the error. "This expression is typed in correctly or is too complex to evaluate". In the combo box I have e.g Mar in column1 and */03/* in column2.This would then hopefully select all the March months. The code in the criteria is
[Forms]![frmReportDept]![2ComboMonth].[Column(1)]. Anyone have any idea what is wrong with it. I've tried a few variations on the above but nothing works
Thanks
Niall


 
When I tried this -> I got Undefined function '[Forms]![frmReportDept]![2ComboMonth].Column' in expression

any other ideas. I really don't understand why it won't work
Thanks
Niall
 
Make sure you specify the column number i.e. column(0) is the first column in your combo box, column(1) is the second column. Also, are you sure your combo box is set up with two columns?
 
Yeah I have made it visible to makesure. Its the second column so I refernce it with column(1)
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top