In OE Order Entry screen, I’m wondering if it is possible to make a text field user required, using VBA.
Say if a customer had YesNofield1 checked; Using SQL within VBA, is there a way to set the PO text field to required if the query comes back true?
If you are talking about the fields on the Extra tab, the answer is no. If you are talking about user_def_fld_1 through 5, which you can unhide in screen designer, you can do this without any code whatsoever. Unhide the field, place it and call it what you want, then make it a required field.
Software Training, Implementation, Programming and Support for Macola Progression, Macola ES, Macola 10, Synergy, and Crystal Reports.
Check out our Macola tools:
You mean the PO field? Yes, go to screen designer and make it a required field.
Conditionally required? Yes this is doable with VBA, you'll need to define the conditions.
in general terms, on the macform_close() event (or perhaps a different event, I'd have to research it) you test test your conditions and if the oe_po_no is blank. If so disallow the save of the order, send up a message box that the PO is required, ad set the focus to the PO field.
The details kind of go beyond the scope of this forum. If this is something you are not comfortable with, you should contact your Macola reseller or Exact regional office.
It might be easier just to make the PO field a required field 100% of the time, which only takes 10 minutes.
Software Training, Implementation, Programming and Support for Macola Progression, Macola ES, Macola 10, Synergy, and Crystal Reports.
Check out our Macola tools:
This site uses cookies to help personalise content, tailor your experience and to keep you logged in if you register.
By continuing to use this site, you are consenting to our use of cookies.