ReportSelect

ACCPAC Common Controls

AccpacSession.ReportSelect

Creates and returns an AccpacReport object that represents an ACCPAC report.

Function ReportSelect(
  bstrReportName As String,
  menuID As String,
  ProgramID As String) As AccpacReport

Parameters

bstrReportName

[in] the name of the report (the report name must be defined in the application's report INI file)

menuID

[in] the menu ID used to identify the property

Menu IDs are assigned by the system and applications do not have control over the menu ID. If a specific menu ID is not known, an application should pass in the object ID or an empty string (""). In these cases, the Session object will use the system-assigned menu ID.

ProgramID

[in] the Roto ID of the application

The Report object uses this together with the menu ID to locate default report settings saved in the user's properties file.

Return Value

Returns the newly created AccpacReport object, if the specified report name is a valid report defined in the application's report INI file.

Remarks