Results 1 to 2 of 2
  1. #1
    mikem is offline Novice
    Windows 10 Office 365
    Join Date
    Mar 2021
    Posts
    19

    Error 2110 Tabbing between subforms

    I got my form to tab between subforms just like I want. But I broke something else. My goal was to simply to tab from the main form to the subforms and back.



    it successfully starts on the main form. After Buy/Sell, jumps to the first record in frmShortScoresP. Then it works down through all 4 subforms following the arrows. Then it jumps back to the main form. Then to the Trade Info tab.

    All that seems to work great. then when i add a new record, I get the 2110 Error. But I'm not on frmShortScoresM when that happens. I'm on the main form... I think.

    I use the same code to move between each subform. I'm on the Score filed, when i get to the last record, it tabs to the next subform.

    Any idea what I'm doing wrong?

    Click image for larger version. 

Name:	subforms.jpg 
Views:	8 
Size:	66.1 KB 
ID:	44802
    Click image for larger version. 

Name:	vba error.jpg 
Views:	8 
Size:	169.2 KB 
ID:	44804
    Attached Thumbnails Attached Thumbnails vba error.jpg  

  2. #2
    mikem is offline Novice
    Windows 10 Office 365
    Join Date
    Mar 2021
    Posts
    19
    oops
    I figured it out.
    I hade to switch the sequence of my 2 statements in the if-then
    I needed to move the focus back to the first record on the subform before I left the subform
    if I didn't, then came back to the subform, then the if statement was true and it would try to execute again

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

Similar Threads

  1. Replies: 1
    Last Post: 04-24-2018, 04:45 PM
  2. Runtime error 2110, cannot move focus to control
    By sanderson in forum Programming
    Replies: 7
    Last Post: 11-17-2015, 08:00 AM
  3. runtime error '2110'
    By pbouk in forum Forms
    Replies: 8
    Last Post: 03-13-2014, 02:43 PM
  4. Replies: 1
    Last Post: 11-21-2012, 03:41 PM
  5. runtime error 2110
    By Mclaren in forum Programming
    Replies: 9
    Last Post: 07-07-2011, 01: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