Solved

Fixing my code for a VBA in Dynamics

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

Is Your Active Directory as Secure as You Think?

More than 75% of all records are compromised because of the loss or theft of a privileged credential. Experts have been exploring Active Directory infrastructure to identify key threats and establish best practices for keeping data safe. Attend this month’s webinar to learn more.

Question has a verified solution.

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

This is a walkthrough guide I wrote whilst upgrading my on-premise MS Dynamics CRM 3.0 deployment to 4.0. This covers the actual installation of the product to a working level for my system, I ran into a lot of issues that the steps below fixed so h…
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…
Sending a Secure fax is easy with eFax Corporate (http://www.enterprise.efax.com). First, just open a new email message. In the To field, type your recipient's fax number @efaxsend.com. You can even send a secure international fax — just include t…
Video by: Mark
This lesson goes over how to construct ordered and unordered lists and how to create hyperlinks.

895 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

13 Experts available now in Live!

Get 1:1 Help Now