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 iFilterType As Integer
Private Sub Button_Click()
Dim fil As Form
Dim stDocName As String
stDocName = "Student_Course"
Set fil = Forms![StudentID1]
If iFilterType = acApplyFilter Then
DoCmd.OpenReport stDocName, acPreview, , fil.Filter
Else
DoCmd.OpenReport stDocName, acPreview
End If
End Sub
Private Sub Form_ApplyFilter(Cancel As Integer, ApplyType As Integer)
iFilterType = ApplyType
End Sub