Results 1 to 2 of 2
  1. #1
    domivax is offline Novice
    Windows 7 64bit Access 2013
    Join Date
    Apr 2014
    Posts
    7

    Get used with Navigation Control

    Hello,



    I have a main form named 'Main'
    With a button on it named 'Button'

    On this form, I have also a Navigation Control named 'NavigationSubform'

    With a
    NavigationControl named 'NavigationControl'
    2 NavigationButton named 'NavigationButton2' & 'NavigationButton3'

    -

    I have a SubForm named 'SubForm'
    with on it a TextBox named 'TextBox'

    -

    Under 'NavigationButton2', is targeted the 'SubForm'

    -

    Under 'Button', I put the VBA code:

    Private Sub Button_Click()
    [Forms]![Main]![NavigationSubform].[Form]![SubForm]![TextBox].Value = "MyText"
    End Sub

    And I always have the same issue, Access can not find the field 'TextBox'

    Someone can tell me what I am doing wrong with the path of my control 'TextBox' and how to refer it.

    Thank you so much for your help.
    Kind Regards,
    Domivax

  2. #2
    NTC is offline VIP
    Windows 7 64bit Access 2010 32bit
    Join Date
    Nov 2009
    Posts
    2,392
    try
    [Forms]![Main].[NavigationSubform].[SubForm].Form![TextBox] = "MyText"

    now I trust that you realize some of these are reserved names and that you were just trying to keep your post simple and so these are not your real object names...

    next - the Navigation Control is an odd object and may not behave the same.... I am not that familiar with it.....do a sanity check of a normal form/subform/subform (3 level) without using the navigation control type object.....

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

Similar Threads

  1. Replies: 2
    Last Post: 11-27-2014, 01:06 PM
  2. Navigation Control - go to new record
    By SamNotSoWise in forum Forms
    Replies: 1
    Last Post: 06-26-2012, 02:57 PM
  3. Using Navigation Control
    By PlamenGo in forum Access
    Replies: 9
    Last Post: 04-08-2012, 01:57 AM
  4. Navigation pane control!
    By karanvemuri in forum Access
    Replies: 5
    Last Post: 10-10-2011, 06:12 PM
  5. Control Navigation Bar
    By Patrick.Grant01 in forum Access
    Replies: 0
    Last Post: 05-17-2009, 06:16 AM

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