hi , all
i have check box called invoice. if the user makes invoice check true then i would like to show all the blank records with invoice date field is null
this works but blocks any of my other filters
i have start and end date text boxes where the use inputs the a date range for works completed then be able to make the invoice check box true and only show the record in that date range of date work completed but know invoice date.
sorry if im not that clear
thanks in advance
shane
i have check box called invoice. if the user makes invoice check true then i would like to show all the blank records with invoice date field is null
Code:
If Me.[invoice] = True Then
If strWhere <> vbNullString Then
strWhere = strWhere & " AND "
End If
strWhere = strWhere & "[Invoice Date] is Null"
End If
this works but blocks any of my other filters
i have start and end date text boxes where the use inputs the a date range for works completed then be able to make the invoice check box true and only show the record in that date range of date work completed but know invoice date.
sorry if im not that clear
Code:
strDateField = "[Date Work Completed]"
If IsDate(Me.txtStartDate) Then
strWhere = "(" & strDateField & " >= " & Format(Me.txtStartDate, strcJetDate) & ")"
End If
If IsDate(Me.txtEndDate) Then
If strWhere <> vbNullString Then
strWhere = strWhere & " AND "
End If
strWhere = strWhere & "(" & strDateField & " < " & Format(Me.txtEndDate + 1, strcJetDate) & ")"
End If
thanks in advance
shane