conditional display of subform

Collapse
X
 
  • Time
  • Show
Clear All
new posts
  • JCemcity
    New Member
    • Jan 2007
    • 1

    conditional display of subform

    When a user selects the "No" choice in a pulldown list while entering info into the main form, I want it to trigger the opening of a subform for the user to enter detailed data. Is there a way to do this? thanks! Jon
  • George Oro
    New Member
    • Jan 2007
    • 36

    #2
    If me.YourChoicePu lldownName.valu e = "No" then
    docmd.openform "YourFormNa me"
    else
    'In case you have some condition if Yes
    end if

    Your saying its a subform, so subform is attached to a form and always open. I assumed your subform is another form.

    HTH,
    George


    Originally posted by JCemcity
    When a user selects the "No" choice in a pulldown list while entering info into the main form, I want it to trigger the opening of a subform for the user to enter detailed data. Is there a way to do this? thanks! Jon

    Comment

    • NeoPa
      Recognized Expert Moderator MVP
      • Oct 2006
      • 32645

      #3
      George's code should be put in the AfterUpdate event of the ComboBox control.

      Comment

      Working...