Forms not refreshing when navigating between them (1 Viewer)

Sketchin

Registered User.
Local time
Yesterday, 18:15
Joined
Dec 20, 2011
Messages
583
I am having a frustrating issue that I can't nail down. I have a navigation control and if I choose a form, then choose a different form, I can still see part of the old form ontop of the most recently opened form. This also happens if I completely close all forms, I can still see part of the old form.

The circled part in this screenshot shows remnants of the old form still showing:
Painting issue 2.jpg



In this one, there aren't any forms actually opened right now, but you can still the the recently closed form:

Painting issue 1.jpg
 
I believe you mean it is not "repainting" the form. Refreshing is updating the data on the screen. You could try forcing a form.repaint, but you might be chasing the real issue. Try creating a new database and importing everything into that. If that fails you can try a database decompile
https://www.fmsinc.com/MicrosoftAccess/Performance/Decompile.asp. Obviously it should not be failing like that so there could be some kind of corruption in the form.
 
Make sure you have the latest video drivers, and also select a common default printer (e.g. MSFT Print to PDF).
 
Imported everything and the problem persists. I did notice that on my 4k monitor I don't see the same problem as on my 1080p monitor. I imagine its something in my graphics settings.
 
Imported everything and the problem persists. I did notice that on my 4k monitor I don't see the same problem as on my 1080p monitor. I imagine its something in my graphics settings.
Can you upload a copy to see if we see the same problem?
 
This also happens if I completely close all forms, I can still see part of the old form.

Just for clarification: Are you saying that with NO forms open, you can still see a form remnant where it used to be?

There is an "application.RefreshDatabaseWindow" method that might get rid of remnants. Probably you would want that to execute in the .Exit event of each form, though that is a guess.


Since it is an application object rather than a forms object, I'm not sure where you would best manipulate it.
 
That does not do a repaint of the "database screen". That is referring to this window
database window.png


As stated it is to refresh objects in that window that have been added, renamed, or removed via code.
Use the RefreshDatabaseWindow method to immediately reflect changes to objects in Microsoft Access in the Database window. For example, if you add a new form from Visual Basic and save it, you can use the RefreshDatabaseWindow method to display the name of the new form on the Forms tab of the Database window immediately after it has been saved.
 

Users who are viewing this thread

Back
Top Bottom