MS VBA Access - Form Flickers or Crashes When it has Conditional Formatting, Totals and Only One Row is Returned

 An annoying problem in MS Access VBA sub forms which took some finding a solution for.

We had a form with a subform.  Every now and then the form would just hang (or freeze) but we couldn't work out why.

We eventually narrowed it down to the subform.  The subform was on a page/tab control and if we clicked a different tab (so the subform was no longer visible), everything was fine.

After much internet search and trialling of different approaches, we realised that if there was more than one row, everything worked fine.

Further investigate revealed that removing the totals from the form also meant it worked.

Finally we found that removing the conditional formatting meant that the form worked.

So we had to choose one of these things to drop

  • Conditional Formatting
  • Totals
  • Make the query return extra row(s)
In the end we dropped the conditional formatting and things worked fine.

Comments

Popular posts from this blog

Morrisons Three Fish Roast

How to Stop the Annoying Nag Message in Outlook Asking to Take Outlook Anywhere

Amazfit / Zepp App Needs to be Running for Alexa Shortcut to Work