Access 2007 Form in "Tabbed Documents" view -- icon dimmed, cannot access form

I have an Access Database with many different VBA Event Procedures.

The database is displayed in the "Tabbed Documents" view. (Access Options > Current Database > Document Window Options)

After running a specific Event Procedure, the "Form" icon on the "Tab" for one specific Form becomes dimmed out, and I can no longer click on that tab. The Form is still active and works perfectly, but if I click away from it to another Form, I cannot bring it back to the foreground by clicking on its tab the way I normally would, it's as if the Tab is disabled.

If I use a button on another form to bring my "dimmed out" main form back into view, I can at least get to it and work on it, but still, I cannot get back to it using its tab. (In other words, pulling it back into focus does not fix the dimmed out tab.)

If I completely close that particular form and re-open it, everything is back to normal and the tab works until that Event Procedure is run again.

I don't see the event procedure doing anything strange, and I'm assuming it's just a property of the form that is getting modified, but I can't for the life of me figure it out or find anything about it online.

Any ideas?

Who is Participating?

[Product update] Infrastructure Analysis Tool is now available with Business Accounts.Learn More

I wear a lot of hats...

"The solutions and answers provided on Experts Exchange have been extremely helpful to me over the last few years. I wear a lot of hats - Developer, Database Administrator, Help Desk, etc., so I know a lot of things but not a lot about one thing. Experts Exchange gives me answers from people who do know a lot about one thing, in a easy to use platform." -Todd S.

Can you provide as sample of the code ?
netmergenceAuthor Commented:
Sorry, I didn't know what portion of the code could possibly have caused the issue, and the VBA code was hundreds of lines long.

In any case, I completley re-wrote the code a different way and it seems to have fixed it...

Experts Exchange Solution brought to you by

Your issues matter to us.

Facing a tech roadblock? Get the help and guidance you need from experienced professionals who care. Ask your question anytime, anywhere, with no hassle.

Start your 7-day free trial
It's more than this solution.Get answers and train to solve all your tech problems - anytime, anywhere.Try it for free Edge Out The Competitionfor your dream job with proven skills and certifications.Get started today Stand Outas the employee with proven skills.Start learning today for free Move Your Career Forwardwith certification training in the latest technologies.Start your trial today
Visual Basic Classic

From novice to tech pro — start learning today.