I am having some issues creating a query and one columns has a criteria that runs against a forms unbound checkbox. I run a MS SQL backend and these particular columns have a datatype of bit. So they are True / False in the backend db. I have an access frontend and the linked table converts these columns to 0 or -1 as it should. So I have a form that users fill out to filter the query in the way they want to. One being a checkbox named [Tech]. If [Tech] is checked I want the query to bring back the the True/-1 values for this specific column or if not checked bring the False/0. If I hand type in True, Yes, or -1 they all filter as they should; same goes with False, No, and 0. So in the criteria of this column I have
IIf([Forms]![ReachQueryForm]![Tech],True,False)
This only works if the checkbox is not checked and then the query correctly pulls the False records back. It does pull any results when it is checked.
I have tryed
IIf([Forms]![ReachQueryForm]![Tech] = True,True,False)
and that didnt work at all. I have also interchanged the True and False with Yes, No, -1 and 0. I am out of ideas and could really use some help. Thanks for any thoughts on this.
IIf([Forms]![ReachQueryForm]![Tech],True,False)
This only works if the checkbox is not checked and then the query correctly pulls the False records back. It does pull any results when it is checked.
I have tryed
IIf([Forms]![ReachQueryForm]![Tech] = True,True,False)
and that didnt work at all. I have also interchanged the True and False with Yes, No, -1 and 0. I am out of ideas and could really use some help. Thanks for any thoughts on this.