I was hoping to leave out the complete context because I know its not necessary for solving this problem.
Let me make this theoretical.
Lets say I have form1.
On form1 I have two combo boxes. Cbo1 and cbo2.
In Cbo1, I have two options, "Calendar" and "Off Calendar."
In cbo2, I have 3 options, "2013" "2014" and "2015"
Also, on form1 I have a button(btn1) that opens a query(query1).
I would like for query1's criteria to be
Code:
Like "*" & "12/31" & "*" And Like "*" & Forms!MyForm!Cbo2
IF "Calendar" is selected in Cbo1.
I would like for query1's criteria to be
Code:
Not Like "*" & "12/31" & "*" And Like "*" & Forms!MyForm!Cbo2
IF "Off Calendar" is selected in Cbo1.
I'm having trouble setting the criteria based off of a combobox, we really don't need to delve into the details of my fields/tables/recordsources. The database I attached is a bad example because I'm using two different queries when my desired outcome is using one query.
And also, the 3rd button is hidden behind the second button.