Results 1 to 5 of 5
  1. #1
    Eranka is offline Competent Performer
    Windows 10 Access 2016
    Join Date
    Dec 2017
    Posts
    150

    Moving A Navigation Button Automatically

    Hi



    Code:
     Forms![Navigation Form]!NavigationButton920.Visible = False 
    Forms![Navigation Form]!NavigationButton927.Visible = False
    Forms![Navigation Form]!NavigationButton187.Left = 2000
    Please see above code. Here i want to move the navigationbutton187 to left when the other two navigationbuttons are not visible. Appreciate your help.

  2. #2
    orange's Avatar
    orange is online now Moderator
    Windows 10 Access 2010 32bit
    Join Date
    Sep 2009
    Location
    Ottawa, Ontario, Canada; West Palm Beach FL
    Posts
    16,850
    Seems you would have some criteria to determine if/when the other two navigationbuttons are not visible.

    general logic (air code)
    Code:
    if your condition is true then
        make required buttons Not visible
        adjust position of  Nav187
    end if

  3. #3
    Eranka is offline Competent Performer
    Windows 10 Access 2016
    Join Date
    Dec 2017
    Posts
    150
    HI

    I tried something like


    Code:
    If (Me.Text28=3) Then
    Forms![Navigation Form]!NavigationButton920.Visible = False 
    Forms![Navigation Form]!NavigationButton927.Visible = False
    Forms![Navigation Form]!NavigationButton187.Left = 2000
    End If
    but its not working.

  4. #4
    orange's Avatar
    orange is online now Moderator
    Windows 10 Access 2010 32bit
    Join Date
    Sep 2009
    Location
    Ottawa, Ontario, Canada; West Palm Beach FL
    Posts
    16,850
    something like
    ???

    What does 3 represent?

    "its not working" doesn't help --error message? number? screen went black? Tell us what you did and what happened?

  5. #5
    Eranka is offline Competent Performer
    Windows 10 Access 2016
    Join Date
    Dec 2017
    Posts
    150
    3 represent the security level of a user.

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

Similar Threads

  1. Replies: 5
    Last Post: 02-08-2014, 02:58 PM
  2. Navigation Pane not automatically updating
    By thebigthing313 in forum Access
    Replies: 4
    Last Post: 02-05-2014, 09:04 AM
  3. Replies: 5
    Last Post: 12-29-2013, 05:10 PM
  4. Replies: 1
    Last Post: 10-20-2013, 06:37 PM
  5. Replies: 2
    Last Post: 06-17-2011, 04:26 PM

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