Main form flickers when opening a pop-up form

I guess I should have interpreted "prevent screen painting" with hiding the form. OK. My bad.

You asked if I had tried hiding the form and I said I had tried that.
As part of that I also tried 'Preventing screen painting' - I meant exactly that - I tried both Application.Echo False and Screen.Painting=False.
Neither stopped the flicker
 
Thanks for the help everyone. I'll probably just keep it the way it is. It's useful to still have the main form open, as you can quickly refer to it without having to exit the pop up form. The flickering is ultimately just a visual nuisance so we can deal with it
 
I hate to post on an old threads but honestly, screen flicker is something I've dealt with for, literally 15 years. I never could quite figure it out, I've read ALLLLLLL the articles and done ALLLLLL the code tricks, echo, paint, modal, disconnected text box labels, converting labels to text boxes, I dont use requery, and I dont use repaint etc etc, I've even used Chat GPT to see anything I may have missed over the years. Believe me I've read dozens of posts on this site and others with nothing working.

Essentially I have an on timer event that runs every 1000ms for a scoreboard and I would see flickers in certain labels that i change the caption, what was goofy is the timer changes each second so it changes obviously but I would reoutput the scores anyway too -- well even not outputting them caused the flicker so it wasn't the frequency of updates causing the flicker. The scoreboard runs across thee extended monitors and they do not have the exact same output. One or two of the forms would flicker and the other would not -- So confusing!

The captions are stand alone and not tied to a text box. The backcolor is Red and the forecolor is yellow for half the scoreboard and the backcolor is blue on the other half of the scoreboard and the forecolor is yellow. The Flicker would come and go over the years flipping between labels seemingly at random with no way for me to fix it, i would do things that "fixed" it and it would come back.

I rencently needed to write a monitor to see the realtime scores and timers for 4 scoreboards at once to project on a tv or projector so i wrote it quickly and the same issue just flickers on labels and picture boxes and made the app look budget.

Well friends I'm here to tell you a defenitive fix for my issue:

This solved my issue 100% and i deployed it across my other forms with flicker and it solve those issues too -- I hope this helps some other poor soul.

So the red and blue boxes and labels i had are right beside each other. But in reality they were overlapping each other, ever so slightly. I used Ctrl + mouse moving size on the lables to make it absolutely precise the flicker was elimited 100% If the labels are touching each other its fine, if they are overlapping each other it is not fine. You can see in the monitor 4 portion such a small gap inbetween the labels -- this solved the issue, I could certainly use the ctrl + mouse to get it perfect but I wanted to leave it to illustrate the fix, on my main scoreboard that flickered I did make the blue and red touch each other pefectly without overlapping and that killed the flicker also!

I felt so excited I knew I had to come here and share this. I realize this may be unrelated to subform or continous form flickers.

Happy Hunting on killing your label flickers!
 

Attachments

  • Main Scoreboard Origional Flicker.png
    Main Scoreboard Origional Flicker.png
    59 KB · Views: 113
  • Monitor4.png
    Monitor4.png
    48.2 KB · Views: 115
Last edited:
@SuperShin
Which version of Access are you using?
I ask as overlapping controls was a known cause of flickering back in the days of Access 2003 but I thought that had been fixed 20 years ago.

Other known causes of flickering include:
  • Using a timer event
  • Using mouse move events
  • opening and closing objects in the background
 
Which version of Access are you using?
i think the OP is not asking any question, in fact he is sharing his experience on eliminating flicker on form.
 
@SuperShin
Which version of Access are you using?
I ask as overlapping controls was a known cause of flickering back in the days of Access 2003 but I thought that had been fixed 20 years ago.

Other known causes of flickering include:
  • Using a timer event
  • Using mouse move events
  • opening and closing objects in the background

I'm on O365 this project has been going since the 2000 version though but obviously i've migrated all the code base and objects to .accdb long ago, and I've had this issue in Access 2000, 2007, 2010 and 2016/365 I did skip 2003 and 2013 in my travels and RTE life.

I will say the score is one big label and the names names / countries are another lable on top of that label the issues were the red and blue overlap so maybe it takes more than 3 to cause the flicker? I dont know but i can say I'm as happy.
 
I slightly modified your app to prove that clicking the button causes the parent form's record to be requeried. This is Access doing its thing, in its infinite wisdom. Nothing you can do about that unless you go to extremes like using an unbound form.
BTW, both the parent and the child form use the same recordsource. Be careful, or "You and another user changed the same record..." error is in your near future.
 
I'm on O365 this project has been going since the 2000 version though but obviously i've migrated all the code base and objects to .accdb long ago, and I've had this issue in Access 2000, 2007, 2010 and 2016/365 I did skip 2003 and 2013 in my travels and RTE life.

I will say the score is one big label and the names names / countries are another lable on top of that label the issues were the red and blue overlap so maybe it takes more than 3 to cause the flicker? I dont know but i can say I'm as happy.
I wonder whether you continued to have problems as the app was originally created back in A2000.
Many of my apps have forms with multiple overlapping controls though normally only one of each group of overlapping controls will ever be visible. I'm not sure whether that makes a difference. but I only experience flickering where I have one or more of the items listed in post #34

Anyway, I'm glad it worked out for you
 
I dont see how, the form that i made from scratch had the issue and it was made natively in O365.

Also between 2000 and 2020 there have been several complete de compiles and re imports of all objects into new clean .accdb

I'm here to say this bug isn't fixed. I tried it on a 3rd form i had a flicker and troubleshoot it directly to that issue of overlap further confirming that was my issue.
 
@SuperShin
Can you provide an example of a form that exhibits this problem. I'd be interested to see why you have issues that I don't experience.
 

Users who are viewing this thread

Back
Top Bottom