Results 1 to 4 of 4
  1. #1
    sneuberg is offline Novice
    Windows 7 64bit Access 2013
    Join Date
    Sep 2014
    Posts
    23

    Subform on enter event fires when the form loads

    I have a form where all of the controls including a sub form were inadvertently place in the header of the form. I wanted to anchor the sub form to the bottom of the form and so I moved the controls from the header to the detail section. Now the On Enter event of the sub form fires when the form is loaded. This isn’t normal. I created a simple form with a sub form from scratch and the sub form On Enter event didn’t fire when the form was load. I experimented with this simple form and moved the text box of the parent table to the form header. As expected the On Enter event fired when the form was loaded. Not so expected was that this still occurred when I moved the textbox back to the detail section. By moving I mean dragging, and cutting and pasting. I’ve tried both. The form can’t seem to forgive and forget. I don’t want to recreate this form from scratch. Any suggestions?

  2. #2
    June7's Avatar
    June7 is offline VIP
    Windows 7 64bit Access 2010 32bit
    Join Date
    May 2011
    Location
    The Great Land
    Posts
    52,896
    Check the TabOrder property of the controls.
    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
    Missinglinq's Avatar
    Missinglinq is offline VIP
    Windows 7 64bit Access 2007
    Join Date
    May 2012
    Location
    Richmond (Virginia, not North Yorkshire!)
    Posts
    3,018
    Quote Originally Posted by June7 View Post
    Check the TabOrder property of the controls.
    Yes, if the Subform Control is the first Tab Stop you'll see this behavior.

    Linq ;0)>
    The problem with making anything foolproof...is that fools are so darn ingenious!

    All posts/responses based on Access 2003/2007

  4. #4
    sneuberg is offline Novice
    Windows 7 64bit Access 2013
    Join Date
    Sep 2014
    Posts
    23
    Sorry, I thought I posted a thank you note yesterday, but somehow it didn't get posted. The tab stop was the problem. Mucho gracias, vielen Dank, and thank you very much.

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

Similar Threads

  1. Replies: 4
    Last Post: 10-18-2014, 10:53 PM
  2. Replies: 1
    Last Post: 10-24-2013, 06:14 AM
  3. Form Event On Enter
    By JeffGeorge in forum Forms
    Replies: 3
    Last Post: 10-10-2013, 02:14 PM
  4. Field auto enter new line on enter event
    By Ruegen in forum Forms
    Replies: 3
    Last Post: 09-17-2013, 09:00 PM
  5. Replies: 2
    Last Post: 01-08-2013, 12:56 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