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.
Public varStartDate As Variant
Public varEndDate As Variant
Public Function getvarStartDate() As String
'hold Start Date
getvarStartDate = varStartDate
End Function
Public Function getvarEndDate() As String
'hold Start Date
getvarEndDate = varEndDate
End Function
Private Sub cmdCancel_Click()
DoCmd.Close acForm, "frmCFMCriteria"
End Sub
Private Sub cmdEnter_Click()
varStartDate = Me.txtStartDate
varEndDate = Me.txtEndDate
DoCmd.OpenReport "CFM Log", acViewPreview
DoCmd.Close acForm, "frmCFMCriteria"
End Sub
Private Sub Form_Load()
Me.TimerInterval = 1
End Sub
Private Sub Form_Timer()
Me.TimerInterval = 0
DoCmd.Close acReport, "CFM Log"
End Sub
Between getvarStartDate() And getvarEndDate()
="From " & getvarStartDate() & " through " & getvarEndDate()
Private Sub Report_Close()
varStartDate = ""
varEndDate = ""
End Sub
Private Sub Report_Open(Cancel As Integer)
If varStartDate = "" Or varEndDate = "" Then
DoCmd.OpenForm "frmCFMCriteria"
Cancel = 1
Exit Sub
End If
End Sub