Hi all. I^m trying to create a form in my customers database to display results by selecting values from combos or list boxes. The sample DB found in allen browne http://allenbrowne.com/ser-62.html website and I really like it. What I would like to do though is have the following.
<<<<This is the code for one combo.>>>> <<<<<<
>>>>>>
I've inserted the code but is working only for one combo at the time.
Any suggestions are more than welcome and much appreciated.
Cheers.
<<<<This is the code for one combo.>>>> <<<<<<
Code:
'Number field example. Do not add the extra quotes. If Not IsNull(Me.cboFilterLevel) Then strWhere = strWhere & "([LevelID] = " & Me.cboFilterLevel & ") AND " End If >>>>>> I would like to have more than one combos like. <<<<<< 'Number field example. Do not add the extra quotes. If Not IsNull(Me.cboFilterLevel1) Then strWhere = strWhere & "([LevelID] = " & Me.cboFilterLevel1 & ") AND " End If If Not IsNull(Me.cboFilterLevel2) Then strWhere = strWhere & "([LevelID] = " & Me.cboFilterLevel2 & ") AND " End If If Not IsNull(Me.cboFilterLevel3) Then strWhere = strWhere & "([LevelID] = " & Me.cboFilterLevel3 & ") AND " End If If Not IsNull(Me.cboFilterLevel4) Then strWhere = strWhere & "([LevelID] = " & Me.cboFilterLevel4 & ") AND " End If
I've inserted the code but is working only for one combo at the time.
Any suggestions are more than welcome and much appreciated.
Cheers.
Comment