Still celebrating National IT Professionals Day with 3 months of free Premium Membership. Use Code ITDAY17

x
?
Solved

Fixing my code for a VBA in Dynamics

Posted on 2011-02-19
5
Medium Priority
?
400 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 2000 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

 [eBook] Windows Nano Server

Download this FREE eBook and learn all you need to get started with Windows Nano Server, including deployment options, remote management
and troubleshooting tips and tricks

Question has a verified solution.

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

Having trouble getting your hands on Dynamics 365 Field Service or Project Service trial? Worry No More!!!
Desired Skill Set for Microsoft Dynamics CRM Technical Resources – Part I
Do you want to know how to make a graph with Microsoft Access? First, create a query with the data for the chart. Then make a blank form and add a chart control. This video also shows how to change what data is displayed on the graph as well as form…
We’ve all felt that sense of false security before—locking down external access to a database or component and feeling like we’ve done all we need to do to secure company data. But that feeling is fleeting. Attacks these days can happen in many w…

661 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