EnforceAppVersion

ACCPAC Common Controls

AccpacSession.EnforceAppVersion

Returns/sets whether OpenDBLink calls enforce a match of (the session's) AppVersion and the activated application version in the company database.

Property EnforceAppVersion As Boolean

Remarks

The property is TRUE by default. Activation UIs set this property to FALSE.

When this property is TRUE, the AccpacSession object checks the application version (supplied when calling Init) against the activated version of the application in the database. This check is performed when opening database links (when calling OpenDBLink), and the call will return an error if the versions do not match.

Setting this property to FALSE is useful for applications that specifically need to open databases with a different version of activated data. In this case, the application must examine the AccpacActiveApp collection to determine the version of activated data and work with the corresponding database table structures.