web
You’re offline. This is a read only version of the page.
close
Skip to main content

Notifications

Announcements

No record found.

Community site session details

Community site session details

Session Id :
Microsoft Dynamics GP (Archived)

VBA: SaveRecord_BeforeUserChanged is not firing

(0) ShareShare
ReportReport
Posted on by 225

Hi again:

I wanted to capture any save on a Position Setup record and came across this blog post from David and thought I had my solution. I made the SaveRecord field visible from within Modifier and then successfully registered the script in VBA. However, when I try adding code to the SaveRecord_BeforeUserChanged handler, it fails to fire when I click the Save button. I also tried implementing the SaveRecord_Changed handler and it fires just fine... twice on each save even.

I then tried the equivalent DisplayExistingRecord handlers. Again, the Changed fires, but the BeforeUserChanged does not.

I found another post by a developer suggesting the problem started when s/he upgraded to GP 2010. I'm on 2013. Does anyone know anything more about this? 

I'll try the Window_AfterModalDialog approach next, but this definitely seems "kludgier".

Many thanks,

Pab

*This post is locked for comments

I have the same question (0)

Under review

Thank you for your reply! To ensure a great experience for everyone, your content is awaiting approval by our Community Managers. Please check back later.

Helpful resources

Quick Links

Responsible AI policies

As AI tools become more common, we’re introducing a Responsible AI Use…

Neeraj Kumar – Community Spotlight

We are honored to recognize Neeraj Kumar as our Community Spotlight honoree for…

Leaderboard > 🔒一 Microsoft Dynamics GP (Archived)

#1
mtabor Profile Picture

mtabor 1

Last 30 days Overall leaderboard

Featured topics

Product updates

Dynamics 365 release plans