Robert,
Thanks for your time and willingness to work this through with me.

It's frustrating when you have an issue like this and there is no error. So, thank you!
All the filters use the same structure. You can select to filter the report by one of the listboxes or all of them.
I have pasted all the code. The add filter and remove filter as well. Like I said, right now I can filter by sample_id '043'and see all the results for that sample. When I preview the report I see a sample_id '0001', but when I select it from my listbox and click on the add filter I get a blank page. The list boxes are populated by querying for the distinct values for that field in the query that builds the report. So, that I only get the values that make up the report. I think it might be a filter issue somehow when I click 'remove filter' it keeps it or doesn't clear it completely somehow. You know similar to when you do a filter by form or filter by selection or advance filter in datasheet view.
Code Below:
Private Sub cmdApplyFilter_Click()
Dim varItem As Variant
Dim strAnalyte As String
Dim strLocation As String
Dim strTask As String
Dim strEmployee As String
Dim strFilter As String
Dim strSortOrder As String
Dim strSource As String
Dim strLimitType As String
Dim strInvestigation As String
Dim strCompany As String
Dim strSample As String
' Check that the report is open
Dim Response As VbMsgBoxResult
If SysCmd(acSysCmdGetObjectState, acReport, "rpt_ContaminantandExposureLimit") <> acObjStateOpen Then
Response = MsgBox("The report is not open." _
& vbCrLf & "Do you want to open it now?" _
, vbQuestion + vbYesNoCancel)
Select Case Response
Case vbYes
DoCmd.OpenReport "rpt_ContaminantandExposureLimit", acViewPreview
Case vbNo
Exit Sub
Case vbCancel
DoCmd.Close acForm, Me.Name
Exit Sub
End Select
End If
' Build criteria string from lstSample listbox
For Each varItem In Me.lstSample.ItemsSelected
strSample = strSample & ",'" & Me.lstSample.ItemData(varItem) _
& "'"
Next varItem
If Len(strSample) = 0 Then
strSample = "Like '*'"
Else
strSample = Right(strSample, Len(strSample) - 1)
strSample = "IN(" & strSample & ")"
End If
'Build criteria string from Investigation listbox
For Each varItem In Me.lstInvestigation.ItemsSelected
strInvestigation = strInvestigation & ",'" & Me.lstInvestigation.ItemData(varItem) _
& "'"
Next varItem
If Len(strInvestigation) = 0 Then
strInvestigation = "Like '*'"
Else
strInvestigation = Right(strInvestigation, Len(strInvestigation) - 1)
strInvestigation = "IN(" & strInvestigation & ")"
End If
' Build criteria string from lstLocation listbox
For Each varItem In Me.lstLocation.ItemsSelected
strLocation = strLocation & ",'" & Me.lstLocation.ItemData(varItem) _
& "'"
Next varItem
If Len(strLocation) = 0 Then
strLocation = "Like '*'"
Else
strLocation = Right(strLocation, Len(strLocation) - 1)
strLocation = "IN(" & strLocation & ")"
End If
' Build criteria string from lstAnalyte listbox
For Each varItem In Me.lstAnalyte.ItemsSelected
strAnalyte = strAnalyte & ",'" & Me.lstAnalyte.ItemData(varItem) _
& "'"
Next varItem
If Len(strAnalyte) = 0 Then
strAnalyte = "Like '*'"
Else
strAnalyte = Right(strAnalyte, Len(strAnalyte) - 1)
strAnalyte = "IN(" & strAnalyte & ")"
End If
' Build criteria string from lstTask listbox
For Each varItem In Me.lstTask.ItemsSelected
strTask = strTask & ",'" & Me.lstTask.ItemData(varItem) _
& "'"
Next varItem
If Len(strTask) = 0 Then
strTask = "Like '*'"
Else
strTask = Right(strTask, Len(strTask) - 1)
strTask = "IN(" & strTask & ")"
End If
' Build criteria string from lstEmployee listbox
For Each varItem In Me.lstEmployee.ItemsSelected
strEmployee = strEmployee & ",'" & Me.lstEmployee.ItemData(varItem) _
& "'"
Next varItem
If Len(strEmployee) = 0 Then
strEmployee = "Like '*'"
Else
strEmployee = Right(strEmployee, Len(strEmployee) - 1)
strEmployee = "IN(" & strEmployee & ")"
End If
' Build criteria string from lstCompany listbox
For Each varItem In Me.lstCompany.ItemsSelected
strCompany = strCompany & ",'" & Me.lstCompany.ItemData(varItem) _
& "'"
Next varItem
If Len(strCompany) = 0 Then
strCompany = "Like '*'"
Else
strCompany = Right(strCompany, Len(strCompany) - 1)
strCompany = "IN(" & strCompany & ")"
End If
' Build criteria string from fraSource option group
Select Case Me.fraSource.value
Case 1
strSource = "='NIOSH'"
Case 2
strSource = "='OSHA'"
Case 3
strSource = "='ACGIH'"
End Select
' Build criteria string from fraType option group
Select Case Me.fraType.value
Case 1
strLimitType = "='Ceiling'"
Case 2
strLimitType = "='PEL'"
Case 3
strLimitType = "='REL'"
Case 4
strLimitType = "='STEL'"
Case 5
strLimitType = "='TLV'"
End Select
' Build filter string
strFilter = " [SAMPLE_ID] " & strSample & _
" AND [Sampling_Event] " & strInvestigation & _
" AND [Location] " & strLocation & _
" AND [Analyte] " & strAnalyte & _
" AND [Work_Task] " & strTask & _
" AND [Employee_Name] " & strEmployee & _
" AND [Company_Name] " & strCompany & _
" AND [Source] " & strSource & _
" AND [Limit_type] " & strLimitType
' Apply filter and sort to report
With Reports![rpt_ContaminantandExposureLimit]
.Filter = strFilter
.FilterOn = True
.OrderBy = strSortOrder
.OrderByOn = True
End With
End Sub
Private Sub cmdRemoveFilter_Click()
Dim varItem As Variant
Dim i As Integer
' Remove filter and sort from report
On Error Resume Next
With Reports![rpt_ContaminantandExposureLimit]
.FilterOn = False
.OrderByOn = False
End With
On Error GoTo 0
fraType.value = 0
fraSource.value = 0
' Reset form to original values
For Each varItem In Me.lstSample.ItemsSelected
Me.lstSample.Selected(varItem) = False
Next varItem
For Each varItem In Me.lstAnalyte.ItemsSelected
Me.lstAnalyte.Selected(varItem) = False
Next varItem
For Each varItem In Me.lstLocation.ItemsSelected
Me.lstLocation.Selected(varItem) = False
Next varItem
For Each varItem In Me.lstTask.ItemsSelected
Me.lstTask.Selected(varItem) = False
Next varItem
For Each varItem In Me.lstEmployee.ItemsSelected
Me.lstEmployee.Selected(varItem) = False
Next varItem
For Each varItem In Me.lstInvestigation.ItemsSelected
Me.lstInvestigation.Selected(varItem) = False
Next varItem
For Each varItem In Me.lstCompany.ItemsSelected
Me.lstCompany.Selected(varItem) = False
Next varItem
End Sub
thanks,
MV