Results 1 to 3 of 3
  1. #1
    Join Date
    Jun 2008

    Unanswered: setting visibility of object in parent form from subform

    The code below, for a textbox in a subform, doesn't work. No error messages appear but it doesn't make the button in the parent form appear either.

    Private Sub studentID_GotFocus()

    [Forms]![ovCountM]![btnManage].Visible = Yes

    end sub
    Is the syntax wrong or are there other elements that affect visibility? Thanks!

  2. #2
    Join Date
    Jun 2008
    found the solution.

    should be

    [Forms]![ovCountM]![btnManage].Visible = True
    silly me.

  3. #3
    Join Date
    Feb 2004
    Chicago, IL
    There is another way to be a little more generic. Using the code below will allow you to change the name of the main form without breaking your code. Also, you will be able to use this same subform in multiple main forms (probably not as likely):


Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts