Follow along with the video below to see how to install our site as a web app on your home screen.
Note: This feature may not be available in some browsers.
dim strFilter as String 'Used to build a filter
strFilter = "" 'Start with a blank filter
'Verify the both ends of the start date range are valid
If (IsDate(Me![StartRage1]) && IsDate(Me![StartRange2])) then
'Build the filter
strFilter = "([Start Date] between #" _
& Me![StartRange1] & "# AND #" _
& Me![StartRange2] & "#)"
'Verify the finish after date is valid
If (IsDate(Me![FinishAfter]) Then
'If the filter is not blank, then AND this criteria
If (Len(strFilter) > 0)
strFilter = strFilter + " AND "
End If
'Add this criteria
strFilter = strFilter & ([Finish Date] > #" _
& Me![FinishAfter] & "#)"
End If
'Verify the user id number is not blank (do more validation if required)
If (Not IsNull(Me![User ID Number])) Then
'If the filter is not blank, then AND this criteria
If (Len(strFilter) > 0)
strFilter = strFilter + " AND "
End If
'Add this criteria
strFilter = strFilter & ([User ID] = " _
& Str(me![User ID Number]) & ")"
End If
If Len(strFilter) Then
[Forms]![DataForm].Filter = strFilter
[Forms]![DataForm].FilterOn = True
End If