Quantcast
Channel: Microsoft Dynamics GP
Viewing all articles
Browse latest Browse all 59474

Forum Post: Runtime error when changing a field value.

$
0
0

Hello Everyone,

I am trying to reset the value of itemcodes when my users capture the details during a transaction.

For example when my users enter the item code: 'AAAAAA', I want to reset it to 'AA-AA-AA' when the itemcode field loses focus.

The idea is to save them the trouble of having to enter or remember the hyphens when they are entering a lot of items.

I have been able to write the VBA code and added this to the field's,  AfterUserChanged  Event so as to to change this entry however during run time , However , I get the following error:

"Runtime Error - An Attempt was made to set a value which violates the applications business logic . The operation could compromise the integrity of the application."

I would appreciate it if any one could suggest workaround or another approach. ( with code sample where available) to solve this problem.

Let me restate the problem- I need to refomart the field entry after the user has entered a certain value , before the next item is entered in the SOP grid.

Regards

Jason


Viewing all articles
Browse latest Browse all 59474

Trending Articles



<script src="https://jsc.adskeeper.com/r/s/rssing.com.1596347.js" async> </script>