DynDeveloper.com

DynDeveloper.com

Sign Up Now!Log In
sgray128 10/11/2011 4:05:08 PM

Detect the 'origin' when clearing the PM Batches window

This is kind of complicated, but here goes...

I'm trying to selectively disable the post button based on business logic in the PM Batches window. I have code to do this working, but if I press clear when the batch type is 'XPM_Cchecks' my code crashes when I try to re-enable the post button, I get

Unsafe Operation. This operation could compromise the integrity of the application.

What I need to do is to detect if the last batch was XPM_Cchecks in the Origin_changed event... but the Origin field is 0 by that time.

Any ideas?

I'm in VBA, GP10

Version: GP 10
Section: VBA