I have a Main Screen populated with command buttons that let me open other forms. When I close any of these forms, and click on a button to take me to a new record, I get "You can't go to the specified record. You may be at the end of a record set". If I then click on the button to take me to a new record again, I can get to the new record without any error. If I click to either of 2 subforms first, then I can get to a new record without any error. I have tried in a macro and with code, to set the focus to the subforms, but cannot make it work.
I would like a solution that lets me close out of any of the other forms, and be cleared of this error, ready to click on the button and go to a new record. Any help would be appreciated![]()