show fields depending on header filter

karuchua
karuchua Member Posts: 151
hi all,


is it possible for me to show some fields only in my sub-form depending on what the user selects on the header field.

Comments

  • MBerger
    MBerger Member Posts: 413
    yes . Make a function in your subform that hides the fields in question ( let's call it HideFields ). Then call that function of the subform from your mainform when the conditions are met. Don't forget to give your subform control a name, otherwise you can't access it.
    If <condition> then
      currform.<name of subform control>.form.hidefields ;