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.
Private Sub Form_Open(Cancel As Integer)
Dim intDelay As Integer
Dim strMessage As String
Dim i As Integer
If IsNull(Me.OpenArgs) Then
Cancel = True
Exit Sub
End If
i = InStr(Me.OpenArgs & ",", ",")
intDelay = Val(Left$(Me.OpenArgs, i - 1))
strMessage = Mid$(Me.OpenArgs, i + 1)
If intDelay <= 0 Then
Cancel = True
Exit Sub
End If
If Len(strMessage) = 0 Then
DoCmd.MoveSize 0, 0, 0, 0
Else
lblMessage.Caption = strMessage
End If
Me.TimerInterval = Val(Me.OpenArgs) * 1000
DoCmd.Hourglass True
End Sub
Private Sub Form_Timer()
Me.TimerInterval = 0
DoCmd.Hourglass False
DoCmd.Close acForm, Me.Name
End Sub