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