Hi Guys and Gals,
I have a quick little problem ... I have a form that calls out to a dynamic query which works fine. My problem is with the code for the check boxes. This is the code I am using.
Whats happening is that there are three check boxes and I can't select box 1 and 2 to do a query (my results from the search return a blank form) or box 1 and 3 or 2 and 3 or what ever. And to top it all off, if I do select one it works fine and again if I check a different box the results return blank. Do I need to do a .requery on this form and how do I do multiple selection for a search.
Thanks
Love and Kisses
Demona
I have a quick little problem ... I have a form that calls out to a dynamic query which works fine. My problem is with the code for the check boxes. This is the code I am using.
Code:
If Me.[GVL A] = -1 Then
where = where & " AND [Shift ID] = " & "'A'"
End If
If Me.[GVL A] = 0 Then
where = where & " AND [Shift ID] = " & "'A'"
End If
Whats happening is that there are three check boxes and I can't select box 1 and 2 to do a query (my results from the search return a blank form) or box 1 and 3 or 2 and 3 or what ever. And to top it all off, if I do select one it works fine and again if I check a different box the results return blank. Do I need to do a .requery on this form and how do I do multiple selection for a search.
Thanks
Love and Kisses
Demona