Page 2 of 2 FirstFirst 12
Results 16 to 20 of 20
  1. #16
    aytee111 is offline Competent At Times
    Windows 7 32bit Access 2010 32bit
    Join Date
    Nov 2011
    Location
    Nomad
    Posts
    3,936
    Oh, that's a brilliant idea! Form2 is a variable, however, so I would need an AutoExec on open instead of using the Options. Well done!

  2. #17
    ItsMe's Avatar
    ItsMe is offline Sometimes Helpful
    Windows 8 Access 2013
    Join Date
    Aug 2013
    Posts
    7,862
    OK, you can use VBA in a function within a standard module and call the function from your Autoexec. So, have a Public Function within your Standard Module open the form.

    EDIT: Name the standard module something other than the function name. Function names within a macro look like this ...
    MyFunctionName()

  3. #18
    aytee111 is offline Competent At Times
    Windows 7 32bit Access 2010 32bit
    Join Date
    Nov 2011
    Location
    Nomad
    Posts
    3,936
    Good suggestions. Thanks to both of you for your time and persistence.

  4. #19
    HiTechCoach's Avatar
    HiTechCoach is offline MS MVP - Access Expert
    Windows 8 Access 2013
    Join Date
    Jul 2010
    Location
    Oklahoma, USA
    Posts
    702
    It is a timing issue with the events.

    This works in form 1:

    Code:
    Option Compare Database
    Option Explicit
    
    
    
    Private Sub Form_Load()
    
        Me.TimerInterval = 100
        
    End Sub
    
    Private Sub Form_Timer()
    
    
    
        DoCmd.OpenForm "Form2"
      
        Forms!Form2!text1.SetFocus
    
       Me.TimerInterval = 0
    
    
    End Sub
    Attached Files Attached Files

  5. #20
    aytee111 is offline Competent At Times
    Windows 7 32bit Access 2010 32bit
    Join Date
    Nov 2011
    Location
    Nomad
    Posts
    3,936
    Didn't think about setting the timer to zero afterwards!

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

Similar Threads

  1. Replies: 7
    Last Post: 04-24-2015, 11:29 AM
  2. Set focus in sub form
    By Derrick T. Davidson in forum Forms
    Replies: 7
    Last Post: 08-15-2014, 08:18 AM
  3. Set focus in other form?!!!
    By zareh in forum Forms
    Replies: 4
    Last Post: 02-27-2014, 02:33 AM
  4. Replies: 1
    Last Post: 02-29-2012, 09:38 AM
  5. Replies: 11
    Last Post: 01-26-2012, 01:22 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