CheckSessionDate2

ACCPAC Common Controls

AccpacSession.CheckSessionDate2

Checks if the session date is a valid date defined in the company's fiscal calendar, whether the fiscal period in which the session date belongs is active and open (not locked), and whether a warning should be displayed if the period is locked.

Sub CheckSessionDate2(
DateInFiscal As Boolean,
PeriodActive As Boolean,
PeriodOpen As Boolean,
WarnPeriodLocked As Boolean)

Parameters

DateInFiscal

[out] returns whether the session date is a date defined in the fiscal calendar

PeriodActive

[out] if DateInFiscal is TRUE, returns whether the fiscal period to which the session date belongs is active

PeriodOpen

[out] if DateInFiscal is TRUE, returns whether the fiscal period to which the session date belongs is open (not locked)

WarnPeriodLocked

[out] returns whether a warning should be displayed if the fiscal period to which the session date belongs is locked (if PeriodOpen is FALSE)

Remarks