nav-left cat-right

Making A Custom Field Required using VBA

Steve Gray has written a useful post about Making A Custom Field Required using VBA code.

He has written code for the Save Button Click event as well as for the dialog box that appears while closing the window.


Steve Gray’s code is applicable to most of the windows in GP. If you are looking for making PO number required refer to following post by Michael D Johnson II How to make PO field required for specific customer.


4 Responses to “Making A Custom Field Required using VBA”

  1. carlos says:

    The routine is good provided only that the references Microsoft.Dynamics.Common.Company.Company company = (Microsoft.Dynamics.Common.Company.Company) EntityKey.GetEntity ();

    Where I can find, as I searched the whole machine and I have not located.

    or please mention that I need to do to get this library in the library if I do above and the library Dynamics.

    thank you all and hope for a prompt response

  2. dynamics gp says:

    I have been exploring for a bit for any high quality articles or blog posts on this sort of house . Exploring in Yahoo I at last stumbled upon this site. Reading this information So i?m happy to exhibit that I’ve an incredibly excellent uncanny feeling I found out just what I needed. I most for sure will make certain to don?t fail to remember this web site and provides it a glance on a relentless basis.

Leave a Reply