Results 1 to 4 of 4
  1. #1
    rhewitt is offline Advanced Beginner
    Windows 7 64bit Access 2010 64bit
    Join Date
    Sep 2012
    Posts
    74

    How to access a text box on a form within a Navigation form in a report

    I have a form that supplies a value to a query that is used in a Report. Everything worked fine until I added the form into a Navigation form (switchboard).

    When I use the Form within the Navigation form to create the report, I'm prompted for the value that is supplied by the form again.



    Do I have to do something different than my original VBA to access the textbox that stores the value used in my query?

  2. #2
    pbaldy's Avatar
    pbaldy is offline Who is John Galt?
    Windows XP Access 2007
    Join Date
    Feb 2010
    Location
    Nevada, USA
    Posts
    22,521
    The syntax to refer to it changes:

    Forms Refer to Form and Subform properties and controls
    Paul (wino moderator)
    MS Access MVP 2007-2019
    www.BaldyWeb.com

  3. #3
    rhewitt is offline Advanced Beginner
    Windows 7 64bit Access 2010 64bit
    Join Date
    Sep 2012
    Posts
    74
    Thanks,

    I was still having trouble after using the link you provided. Another Access form provided some insight. Rather than referring the sub-form by name, you refer to it by [NavigationSubform]. Here is how mine turned out:

    Code:
    [Forms]![Navigation Form].[Form]![NavigationSubform].[Form]![tboxScientific]
    Here is a generalized version for other users:
    Code:
    [Forms]![Navigation Form].[Form]![NavigationSubform].[Form]![formControl]

  4. #4
    pbaldy's Avatar
    pbaldy is offline Who is John Galt?
    Windows XP Access 2007
    Join Date
    Feb 2010
    Location
    Nevada, USA
    Posts
    22,521
    Technically, you refer to the name of the subform control, which the link states. That may or may not be the same as the name of the subform itself.
    Paul (wino moderator)
    MS Access MVP 2007-2019
    www.BaldyWeb.com

Please reply to this thread with any new information or opinions.

Similar Threads

  1. Report not opening from navigation form
    By librarian in forum Programming
    Replies: 3
    Last Post: 08-03-2012, 11:15 AM
  2. Replies: 3
    Last Post: 01-12-2012, 02:04 PM
  3. Replies: 11
    Last Post: 12-08-2011, 05:31 PM
  4. Replies: 3
    Last Post: 11-15-2011, 06:29 PM
  5. Printing a report in a navigation form
    By DanKoz in forum Forms
    Replies: 2
    Last Post: 08-29-2011, 12:11 PM

Tags for this Thread

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •  
Other Forums: Microsoft Office Forums