Results 1 to 3 of 3
  1. #1
    burrina's Avatar
    burrina is offline VIP
    Windows 7 64bit Access 2002
    Join Date
    Oct 2012
    Location
    Freeport,Texas
    Posts
    1,383

    Set Focus From sub-form to Main Form

    Form Name Control Event Explanation

    frm_Eligible_For_On_Call eligible on Key Down this is the sub-form on my main form, eligible is the control on the form where I use the code

    set focus on frm_Employees_on_Call_What_Order On Call this is the form I want to set the focus on, On Call is the control
    both of these are control sources, eligible and On Call
    their names are OnCall and eligible

  2. #2
    June7's Avatar
    June7 is offline VIP
    Windows XP Access 2010 32bit
    Join Date
    May 2011
    Location
    The Great Land
    Posts
    53,770
    In some event:

    Forms!frm_Employees_on_Call_What_Order.OnCall.SetF ocus
    How to attach file: http://www.accessforums.net/showthread.php?t=70301 To provide db: copy, remove confidential data, run compact & repair, zip w/Windows Compression.

  3. #3
    burrina's Avatar
    burrina is offline VIP
    Windows 7 64bit Access 2002
    Join Date
    Oct 2012
    Location
    Freeport,Texas
    Posts
    1,383
    This code is being fired from a sub-form named frm_Eligible_For_On_Call using the control eligible with the Key Down event. So it will go to the main form named
    frm_Employees_on_Call_What_Order where the control named On Call is located.

    Thanks

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

Similar Threads

  1. Replies: 3
    Last Post: 10-09-2012, 11:58 PM
  2. Replies: 2
    Last Post: 06-26-2012, 10:54 PM
  3. Replies: 7
    Last Post: 03-30-2012, 01:43 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