Public Function Safe_OpenForm (
FormName As String,
Optional View As Integer = acNormal,
Optional FilterName As String = "",
Optional WhereCondition As String = "",
Optional DataMode As Integer = acFormPropertySettings,
Optional WindowMode As Integer = acWindowNormal,
Optional OpenArgs As String = "",
Optional SuppressError As Boolean = False
) As Long
Open report, fail silently if error occur.
See DoCmd.OpenForm for details on the parameters.
The view mode for the form
Dim i As Long
i = xf.Interact.Safe_OpenForm(FormName)
i = xf.Interact.Safe_OpenForm(FormName, View, FilterName, WhereCondition, DataMode, WindowMode, OpenArgs, SuppressError)
Safe_OpenForm "fmClinicVisit"