Code:
Do you concur...Code:
No. You set $iIncludeThis true in the wrong place - it will only be true once for the entire filter.
You need to set it for each entry that you will compare:
Code:
Function Filter()
$Flag = "True"
$Count = 0
For $count2 = 0 To UBound($c)
$Comp = $C[$count2]
$Re = $BY[$count2]
$Err = $E[$Count2]
$iIncludeThis=1
If $ServSort.Text<>"None" AND $ServSort.Text<>$Comp $iIncludeThis=0 EndIf
If $ReportSort.Text<>"None" AND $ReportSort.Text<>$Rep $iIncludeThis=0 EndIf
If $ErrorSort.Text<>"None" AND $ErrorSort.Text<>$ERR $iIncludeThis=0 EndIf
If $iIncludeThis
ReDIM Preserve $D1[$Count]
ReDIM Preserve $T1[$Count]
ReDIM Preserve $E1[$Count]
ReDIM Preserve $C1[$count]
ReDIM Preserve $TE1[$Count]
ReDIM Preserve $BY1[$count]
$D1[$Count] = $D[$Count2]
$T1[$Count] = $T[$Count2]
$E1[$Count] = $E[$Count2]
$C1[$Count] = $C[$Count2]
$TE1[$Count] = $TE[$Count2]
$By1[$Count] = $BY[$Count2]
$count = $count + 1
EndIf
Next
$Count = 0
Update2 ()
EndFunction