Solved

Fixing my code for a VBA in Dynamics

Posted on 2011-02-19
5
394 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
  • 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

Threat Intelligence Starter Resources

Integrating threat intelligence can be challenging, and not all companies are ready. These resources can help you build awareness and prepare for defense.

Join & Write a Comment

Automatically creating a Trello card using data from a Microsoft Dynamics CRM record turned out to be an easy project that yielded great results.  Here's how I did this for an internal team at General Code.
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…
Illustrator's Shape Builder tool will let you combine shapes visually and interactively. This video shows the Mac version, but the tool works the same way in Windows. To follow along with this video, you can draw your own shapes or download the file…
Polish reports in Access so they look terrific. Take yourself to another level. Equations, Back Color, Alternate Back Color. Write easy VBA Code. Tighten space to use less pages. Launch report from a menu, considering criteria only when it is filled…

758 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

Need Help in Real-Time?

Connect with top rated Experts

21 Experts available now in Live!

Get 1:1 Help Now