Error 1003   Unsafe operation. This operation could compromise the integrity of the application.

Situation:

You attempted to enable a field disabled by the accounting system, unlock a field locked by the accounting system, make visible a field made invisible by the accounting system, or make unrequired a field marked as required by the accounting system. To preserve data integrity, Microsoft Dynamics GP application code overrides any attempt you make through VBA to change properties for disabled, locked, hidden or required fields.

Solution:

If Microsoft Dynamics GP application code disables, locks, hides or requires a field, it may impact how your VBA code works with the field.

The following table explains some general guidelines for these properties:

[spacer]

Property

Description

Enabled

If the accounting system disables a field (its Enabled property is False), you cannot enable it or set its value using VBA.

Locked

If the accounting system locks a field, you cannot unlock it (set its Locked property to False) or set its value using VBA.

Visible

If the accounting system hides a field, you cannot make the field visible (set its Visible property to True) or set its value using VBA.

Required

If the accounting system requires a field, you cannot make the field unrequired (set its Required property to False).



Documentation Feedback