Results 1 to 5 of 5
  1. #1
    4 Star Lounger
    Join Date
    Jun 2001
    Location
    Indianapolis, Indiana, USA
    Posts
    527
    Thanks
    0
    Thanked 0 Times in 0 Posts

    Tab control (AXP)

    Hello All,
    How do I call a specific control on a tab control? In other words, I want to copy some data from one control on one tab to another control on a separate tab.

    Thanks,
    Mark

  2. #2
    Plutonium Lounger
    Join Date
    Mar 2002
    Posts
    84,353
    Thanks
    0
    Thanked 29 Times in 29 Posts

    Re: Tab control (AXP)

    There is no need to include the tab control. All controls on a form must have unique names, and you refer to them by that name. So

    txtSomething = txtOther

    will work, even if txtSomething is on a different tab page than txtOther.

  3. #3
    4 Star Lounger
    Join Date
    Jun 2001
    Location
    Indianapolis, Indiana, USA
    Posts
    527
    Thanks
    0
    Thanked 0 Times in 0 Posts

    Re: Tab control (AXP)

    Thanks,
    OK, how do I call a control on a subform then? I am trying "Forms![frmmatrixtabs]![frmBaaselMatrix].[partnumber]" and it says that it cannot find the control (frmbaaselmatrix is the subform).

    Thanks,
    Mark

  4. #4
    Plutonium Lounger
    Join Date
    Mar 2002
    Posts
    84,353
    Thanks
    0
    Thanked 29 Times in 29 Posts

    Re: Tab control (AXP)

    Use Forms![frmmatrixtabs]![frmBaaselMatrix]![partnumber] or Forms![frmmatrixtabs]![frmBaaselMatrix].Form.[partnumber]

    You should use the name of the subform as a control on the main form here; this is not necessarily the same as the name of the subform in the database window.

    See Forms: Refer to Form and Subform properties and controls on the Access Web for a comprehensive overview of how to refer to subforms and controls.

  5. #5
    4 Star Lounger
    Join Date
    Jun 2001
    Location
    Indianapolis, Indiana, USA
    Posts
    527
    Thanks
    0
    Thanked 0 Times in 0 Posts

    Re: Tab control (AXP)

    Thanks! That worked.

Posting Permissions

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