Solved

Fixing my code for a VBA in Dynamics

Posted on 2011-02-19
5
399 Views
Last Modified: 2012-05-11
when should I update my code to save my custom field located on the RMAEntry update window. not in the grid but a field that is located on the top part of the window. and this field is saved in one of my custom table
0
Comment
Question by:taverny
[X]
Welcome to Experts Exchange

Add your voice to the tech community where 5M+ people just like you are talking about what matters.

  • Help others & share knowledge
  • Earn cash & points
  • Learn & ask questions
  • 3
  • 2
5 Comments
 
LVL 10

Expert Comment

by:Abdulmalek_Hamsho
ID: 34933862
SaveButton_BeforeChange event.
0
 

Author Comment

by:taverny
ID: 34933936
I thought about putting the code there but apprently we don't need to click the save button to save my information , I can use the next or previous record button and it will do the same things. so I will have to put my code in every different instence of every buttons
0
 
LVL 10

Expert Comment

by:Abdulmalek_Hamsho
ID: 34935125
You're right. Unfortunately, the form calls a Dexterity procedure called "SaveRecord" which saves the trx, and Dex procedures cannot be overloaded with Pre or Post events, so you need to track the user's clicks on the navigation buttons in the window footer, and the Save button. Not to forget the Close button also, which is the Window_BeforeClose event.
0
 
LVL 10

Accepted Solution

by:
Abdulmalek_Hamsho earned 500 total points
ID: 34935142
Why don't you save the field once the user leaves the field Field_LostFocus?
0
 

Author Comment

by:taverny
ID: 34935231
Well in the way that's what I have right now , so maybe I should leave it this way , but write the proper code for the delete. my concern was for the delete option or the actually clear button which will clear the form. I guess I leave it there for now and we will see what is going on on the delete part.
Thanks
0

Featured Post

Free learning courses: Active Directory Deep Dive

Get a firm grasp on your IT environment when you learn Active Directory best practices with Veeam! Watch all, or choose any amount, of this three-part webinar series to improve your skills. From the basics to virtualization and backup, we got you covered.

Question has a verified solution.

If you are experiencing a similar issue, please ask a related question

For cloud, the “train has left the station” and in the Microsoft ERP & CRM world, that means the next generation of enterprise software from Microsoft is here: Dynamics 365 is Microsoft’s new integrated business solution that unifies CRM and ERP fun…
Desired Skill Set for Microsoft Dynamics CRM Technical Resources – Part II
Michael from AdRem Software outlines event notifications and Automatic Corrective Actions in network monitoring. Automatic Corrective Actions are scripts, which can automatically run upon discovery of a certain undesirable condition in your network.…
This is my first video review of Microsoft Bookings, I will be doing a part two with a bit more information, but wanted to get this out to you folks.
Suggested Courses

624 members asked questions and received personalized solutions in the past 7 days.

Join the community of 500,000 technology professionals and ask your questions.

Join & Ask a Question