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 strRecError
If Me.RecordSource <> "" Then
If Me.Recordset.RecordCount = 0 Then
strRecError = "No Records. "
End If
Else
strRecError = "No recordset. "
End If
If strRecError <> "" Then
If MsgBox(strRecError & "Continue?", vbYesNo) = vbNo Then
Cancel = True
End If
End If
End Sub
Private Sub Form_Open(Cancel As Integer)
Dim strRecError
If Me.RecordSource <> "" Then
If Me.Recordset.RecordCount = 0 Then
strRecError = "No Records. "
End If
Else
strRecError = "No recordset. "
End If
If strRecError <> "" Then
If MsgBox(strRecError & "Continue?", vbYesNo) = vbNo Then
Cancel = True
End If
End If
End Sub
Dim strRecError
If Me.RecordSource <> "" Then
If Me.RecordsetClone.RecordCount = 0 Then
strRecError = "Please try again."
End If
Else
strRecError = "Please try again."
End If
If strRecError <> "" Then
If MsgBox(strRecError, vbExclamation + vbOK, "MyMessageBoxTitle") = vbOK Then
DoCmd.Close
DoCmd.OpenForm "MyForm", acNormal
Else
DoCmd.Close
End If
End If
Dim strRecError
If Me.RecordSource <> "" Then
If Me.RecordsetClone.RecordCount = 0 Then
strRecError = "Please try again."
End If
Else
strRecError = "Please try again."
End If
If strRecError <> "" Then
If MsgBox(strRecError, vbExclamation + vbOKOnly, "MyMessageBoxTitle") = vbOK Then
Cancel = True
End If
End If