Open Forum

 View Only
  • 1.  Looking for sample code

    Posted Jan 21, 2022 12:59 PM
    We need to add a custom button to the Voucher Entry and Document Maintenance screens which is easy enough. 

    However, we also need to condition enabling the button based on the results of a variable.   That is, we want to set a variable to "on" when a particular user originates a document, and need to update the custom button so it is enabled. is the variable is "on".

    My internal VBA programmer is having trouble coding this, and was looking for sample VBA code.

    Does anyone have similar working code they would be willing to share?

    Best regards,

    Gail Jones-Nemeth
    Financial Systems Analyst
    Creative Associates Int'l
    Chevy Chase MD

  • 2.  RE: Looking for sample code

    Posted Jan 24, 2022 09:07 AM
    I'm not 100% sure I'm following what you want to do here, but are you saying you want to enable/disable the button based on if the record being viewed was originally made by the person creating the record?  I used to do something like this and remember having to put events in the Form's load event to inspect variables as people were navigating records.


    Joe Miller
    Director of Systems Architecture
    Harrison, Walker & Harper
    Paris TX