Am trying to create a search button for my data.
The current codes I have makes it possible to filter the data between date range and one drop down selection.
I will like to add one more combo selection to the code to filter.
Below are my current codes:
“ strCriteria = "[MyDate] >= " & Format(Me.OrderDateFrom, "\#mm\/dd\/yyyy\#") & _
" And [MyDate] <= " & Format(Me.OrderDateTo, "\#mm\/dd\/yyyy\#") & _
" AND [IncomeType] LIKE '" & IIf(IsNull(Me.cboIncomeType), "*", Me.cboIncomeType) & "'"
'task = "select * from ALL_INCOME where (" & strCriteria & ") order by [DATE]"
DoCmd.ApplyFilter , strCriteria
Assuming I want to add another combo called “pay_form”, how do I go about that?