Inconspicuous
New member
- Local time
- Today, 06:25
- Joined
- Nov 14, 2013
- Messages
- 3
I'm a nw user here (hi all,) and fairly new to VBA, so I'm hoping to get some direction.
I have a form used to gather data around some supplier details, and we have a review check box with Boolean data. I'm trying to establish a filter button to filter un-checked boxes by specific suppliers from a drop-down list.
Although I've been able to run filters on suppliers and the review checks separately, together I get a "Type Mismatch" error. I thought it might be because of the Boolean data type, so I tried converting that to String but get the same issue. Any insight will be appreciated!
So far what I've created is this:
I have a form used to gather data around some supplier details, and we have a review check box with Boolean data. I'm trying to establish a filter button to filter un-checked boxes by specific suppliers from a drop-down list.
Although I've been able to run filters on suppliers and the review checks separately, together I get a "Type Mismatch" error. I thought it might be because of the Boolean data type, so I tried converting that to String but get the same issue. Any insight will be appreciated!
So far what I've created is this:
Code:
Dim Chk1 As String
Chk1 = CStr([RevChk])
[FONT=Calibri] DoCmd.ApplyFilter , (" Chk1 = " & Chr(34) & 0 & Chr(34) & "") And (" [Supplier Name] = " & Chr(34) & txtSupplSearch & Chr(34) & "")[/FONT]