Logo
Home Cart [Log In] About Us Contact Us

Object Reference

xf_InteractInteraction

Public Function Safe_OpenReport (
ReportName As String,
DisplayMode As Integer,
Optional FilterName As String = "",
Optional WhereCondition As String = ""
) As Long

Open report, fail silently if '2501 - OpenReport action was canceled' error occurs. This error occurs if you hit the cancel button.
See DoCmd.OpenReport for details on the parameters.

ReportName as String

The name of the report

DisplayMode as Integer

The display mode

Optional FilterName as String = ""

The filter condition

Optional WhereCondition as String = ""

The where condition

Call Template:

Dim i As Long
i = xf.Interact.Safe_OpenReport(ReportName, DisplayMode)
i = xf.Interact.Safe_OpenReport(ReportName, DisplayMode, FilterName, WhereCondition)

See Also:

Example 1:

Safe_OpenReport "rptVisitSummary", acViewPreview
Contact Us :: About Us :: Policies :: email: infspamo@arrospamw-of-tispamme.com    © 2012 Arrow Of Time Pty Ltd