Title bar grayed out

  • Thread starter Thread starter Bob Howard
  • Start date Start date
B

Bob Howard

I'm doing some processing in a maximized non-modal popup form. When the
user clicks a certian button, I open a second maximized non-modal popup form
to get some additional info. I leave the first form the way it was
(maximized) although it isn't visible to the user because the second form is
maximize "on top of it."

All the processing is taking place in the VBA code in an onclick event in
the first form.

When I've gotten all the info, I close the second form, and the first form
again becomes visible to the user.

BUT ...

The windows title bar at the top is grayed out and this makes it look a bit
wierd. It seems only a click of the mouse (anywhere on the form) makes it
turn blue again.

I've tried setfocus, repaintobject, maximize, etc. --- nothing from within
the code seems to make the form "wake up."

Is there something simple I'm missing???

Bob (@Martureo.Org)
 
in whatever code you're using to close the second form, try adding the
following line, as

DoCmd.SelectObject acForm, "MyFirstForm"

substitute the correct name of the first form, of course.

hth
 
Back
Top