Page 2 of 2 FirstFirst 12
Results 16 to 20 of 20
  1. #16
    davegri's Avatar
    davegri is offline Excess Access
    Windows 10 Access 2016
    Join Date
    May 2012
    Location
    Denver
    Posts
    3,741
    Code:
    Option Compare Database
    Option Explicit
    Private Sub Client_Change()
        Select Case Client.Value
            Case 0, 1, 3, 4
                [Client Name].SetFocus      'move cursor here
            Case 2
                txtDummy.SetFocus   'get to top of form
                [Explain Mental Challenge].SetFocus     'move cursor here
        End Select
    End Sub
    Private Sub Command726_Click()
    DoCmd.GoToRecord , , acNewRec
    End Sub
    The only tab that had the problem on my system was the Client Data tab. That's because it was greater in height (taller) than my screen resolution. If you have this problem with other tabs, treat them like Case 2, adding txtDummy to each.
    This is code for Form Main. The code above command726 is new.


    On tab Client Data, create a textbox named txtDummy. Remove its label. Change its properties to Height: .001, Width: .001, Top: 0, Left: 0, Back Style: transparent
    Remove the embedded macros for ALL the tabs ON_CLICK event.

  2. #17
    krigsby is offline Novice
    Windows 7 64bit Access 2010 64bit
    Join Date
    Mar 2017
    Posts
    17
    Nevermind on previous thread. I got it. Thank you.

  3. #18
    krigsby is offline Novice
    Windows 7 64bit Access 2010 64bit
    Join Date
    Mar 2017
    Posts
    17
    Thank you!

  4. #19
    pbaldy's Avatar
    pbaldy is offline Who is John Galt?
    Windows XP Access 2007
    Join Date
    Feb 2010
    Location
    Nevada, USA
    Posts
    22,652
    Anybody wishing to jump in on the pages question, there's already a thread on the topic:

    https://www.accessforums.net/showthread.php?t=65277
    Paul (wino moderator)
    MS Access MVP 2007-2019
    www.BaldyWeb.com

  5. #20
    pbaldy's Avatar
    pbaldy is offline Who is John Galt?
    Windows XP Access 2007
    Join Date
    Feb 2010
    Location
    Nevada, USA
    Posts
    22,652
    Ack! I didn't notice the thread continued to a second page.
    Paul (wino moderator)
    MS Access MVP 2007-2019
    www.BaldyWeb.com

Page 2 of 2 FirstFirst 12
Please reply to this thread with any new information or opinions.

Similar Threads

  1. Open a Form up to a specific field
    By djclinton15 in forum Forms
    Replies: 12
    Last Post: 12-21-2015, 06:54 PM
  2. Close one form open another and set focus to a specific field
    By Derrick T. Davidson in forum Programming
    Replies: 12
    Last Post: 08-01-2014, 05:16 AM
  3. Replies: 1
    Last Post: 08-20-2013, 02:17 PM
  4. Open an external folder specific by a form field
    By AccessNoob16 in forum Forms
    Replies: 11
    Last Post: 04-09-2012, 01:30 PM
  5. Replies: 7
    Last Post: 11-29-2009, 01:44 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