Page 2 of 2 FirstFirst 12
Results 16 to 30 of 30
  1. #16
    bpepper82 is offline Novice
    Windows 7 64bit Access 2010 64bit
    Join Date
    Jan 2014
    Posts
    14
    This subform is in a tab control. If I create the subform outside of the tab control, it works fine. Any idea why being in the tab control would cause this behavior?

  2. #17
    RuralGuy's Avatar
    RuralGuy is offline Administrator
    Windows 7 64bit Access 2013
    Join Date
    Mar 2007
    Location
    8300' in the Colorado Rocky Mountains
    Posts
    12,917
    Hmm...Do you have any code or macros running in the Tab Control itself? How about a timer control running? I'm just guessing here.

  3. #18
    bpepper82 is offline Novice
    Windows 7 64bit Access 2010 64bit
    Join Date
    Jan 2014
    Posts
    14
    There is no other code running in the tab control. There are two tabs, each with a different subform.

  4. #19
    RuralGuy's Avatar
    RuralGuy is offline Administrator
    Windows 7 64bit Access 2013
    Join Date
    Mar 2007
    Location
    8300' in the Colorado Rocky Mountains
    Posts
    12,917
    Does the other tab subform exhibit the same symptoms? This is with Win7 64bit and ac2010 64bit, correct?

  5. #20
    bpepper82 is offline Novice
    Windows 7 64bit Access 2010 64bit
    Join Date
    Jan 2014
    Posts
    14
    The subform in the other tab has no code on it. It is for users to enter notes, and they can do so directy in the subform.

    I am using Windows 7 64bit and ac201064bit

  6. #21
    RuralGuy's Avatar
    RuralGuy is offline Administrator
    Windows 7 64bit Access 2013
    Join Date
    Mar 2007
    Location
    8300' in the Colorado Rocky Mountains
    Posts
    12,917
    Put your Click code in the GotFocus or OnEnter event of the control on the SubForm and see if the results are the same.

  7. #22
    bpepper82 is offline Novice
    Windows 7 64bit Access 2010 64bit
    Join Date
    Jan 2014
    Posts
    14
    If I put the code in either of those, nothing happens. It's like its not getting the focus at all. I did however find a workaround. I created the subform outside of the tab control and placed it over the tab. I then put code in the tab control changed event that hides the new subform when the other tab is selected. Not really an answer, but it is functioning the way I want now. I appreciate all the time you spent trying to help me.

  8. #23
    RuralGuy's Avatar
    RuralGuy is offline Administrator
    Windows 7 64bit Access 2013
    Join Date
    Mar 2007
    Location
    8300' in the Colorado Rocky Mountains
    Posts
    12,917
    The tab control has a Click event that is practically useless. Comment out your Click Event code and see if the SubForm can get the focus.

  9. #24
    RuralGuy's Avatar
    RuralGuy is offline Administrator
    Windows 7 64bit Access 2013
    Join Date
    Mar 2007
    Location
    8300' in the Colorado Rocky Mountains
    Posts
    12,917
    The Tab Control will get the Focus *before* the SubForm and could stop the SubForm from receiving the fucus.

  10. #25
    RuralGuy's Avatar
    RuralGuy is offline Administrator
    Windows 7 64bit Access 2013
    Join Date
    Mar 2007
    Location
    8300' in the Colorado Rocky Mountains
    Posts
    12,917
    I guess you don't want to invest any more time in this issue but there is still something both of us do not understand about yoyr Tab Control. It would be nice to resolve that once and for all.

  11. #26
    bpepper82 is offline Novice
    Windows 7 64bit Access 2010 64bit
    Join Date
    Jan 2014
    Posts
    14
    Quote Originally Posted by RuralGuy View Post
    I guess you don't want to invest any more time in this issue but there is still something both of us do not understand about yoyr Tab Control. It would be nice to resolve that once and for all.
    I've tried code in the got focus event of the subform and can't even get that to run. It's like the subform just can't be accessed. I confirmed that it is not locked and that it is enabled. I'm at a loss as to what else to try.

  12. #27
    RuralGuy's Avatar
    RuralGuy is offline Administrator
    Windows 7 64bit Access 2013
    Join Date
    Mar 2007
    Location
    8300' in the Colorado Rocky Mountains
    Posts
    12,917
    Did you comment out the Click Event code yet?

  13. #28
    bpepper82 is offline Novice
    Windows 7 64bit Access 2010 64bit
    Join Date
    Jan 2014
    Posts
    14
    Quote Originally Posted by RuralGuy View Post
    Did you comment out the Click Event code yet?
    Yes, I've tried everything you've suggested thus far. I'm still getting the same result.

  14. #29
    RuralGuy's Avatar
    RuralGuy is offline Administrator
    Windows 7 64bit Access 2013
    Join Date
    Mar 2007
    Location
    8300' in the Colorado Rocky Mountains
    Posts
    12,917
    The Click Event is really a Mouse Event and not a Control Event. I suspect that it is not the best event for what you are trying to accomplish.

  15. #30
    RuralGuy's Avatar
    RuralGuy is offline Administrator
    Windows 7 64bit Access 2013
    Join Date
    Mar 2007
    Location
    8300' in the Colorado Rocky Mountains
    Posts
    12,917
    You are no longer trying to open another form, right? Just displaying the ID value?

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

Similar Threads

  1. Replies: 4
    Last Post: 12-13-2013, 04:50 PM
  2. Replies: 9
    Last Post: 10-09-2013, 08:45 AM
  3. Opening Form to a Specific Record
    By PPat in forum Forms
    Replies: 9
    Last Post: 04-24-2013, 08:47 PM
  4. Help with opening form to specific record
    By manic in forum Programming
    Replies: 7
    Last Post: 09-18-2012, 08:44 PM
  5. Replies: 1
    Last Post: 11-09-2010, 03:02 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