Closing A Form

kirkm

Registered User.
Local time
Tomorrow, 01:39
Joined
Oct 30, 2008
Messages
1,257
When I click the X close button on my Form, and it closes. it leaves a white 'ghost' on the screen where it's been for a second or two.

But If I close The Form in code with DoCmd that doesn't happen.

Any way to have it close cleanly from X button ?

Thanks.
 
Post your database with some sample data.
 
>Post your database with some sample data.

It'd take me along time to cut it back to only a demo of the problem. I'll have a go though.

If no-one else has the problem or know about it, it must be something screwy here and I can live with it. Although something extra must be happening when the Form is closed with it's close button (or whatever you call it - the X beside minimise) compared to DoCmd.Close. Maybe a better description would be to say the area behind where the Form was is not being refreshed immediately.
 
I have seen the same thing with whole applications. Using the X button leaves a grey window hanging for a little while but DoCmd.Quit exits instantly.
 
Right, thanks. Access glitch ? I won't try to fix it then.
 
Actually I have fixed it. Changed window mode to acDialog in the OpenForm command and added line Me.Refresh
All looking/behaving good :)
 

Users who are viewing this thread

Back
Top Bottom