G
Gina Whipp
Hi All,
Below is the filter I am using but with numeric values it's not working, can
someone tell me what I am missing?
Big THANKS!
Dim strSql As String, intCounter As Integer
'Build SQL String
For intCounter = 1 To 2
If Me("Filter" & intCounter) <> "" Then
strSql = strSql & "[" & Me("Filter" & intCounter).Tag & "] " &
" = " & Chr(34) & Me("Filter" & intCounter) & " And "
End If
Next
If strSql <> "" Then
'Strip Last " And "
strSql = Left(strSql, (Len(strSql) - 4))
'Set the Filter property
Reports![rptBudgetByProject].Filter = strSql
Reports![rptBudgetByProject].FilterOn = True
Else
Reports![rptBudgetByProject].FilterOn = False
End If
Below is the filter I am using but with numeric values it's not working, can
someone tell me what I am missing?
Big THANKS!
Dim strSql As String, intCounter As Integer
'Build SQL String
For intCounter = 1 To 2
If Me("Filter" & intCounter) <> "" Then
strSql = strSql & "[" & Me("Filter" & intCounter).Tag & "] " &
" = " & Chr(34) & Me("Filter" & intCounter) & " And "
End If
Next
If strSql <> "" Then
'Strip Last " And "
strSql = Left(strSql, (Len(strSql) - 4))
'Set the Filter property
Reports![rptBudgetByProject].Filter = strSql
Reports![rptBudgetByProject].FilterOn = True
Else
Reports![rptBudgetByProject].FilterOn = False
End If