I have a sub form on one of my forms. This sub form has its default view set to Continuous Forms and uses conditional formatting to change the background colour of each cell, depending on the value of one cell in each row. This is all working well and looks exactly how I want.
My problem is that, when the user makes a selection on the main form and the sub form data changes accordingly, the conditional formatting isn't automatically displayed. All fields remain white until the user passes his mouse over them, at which point the conditional formatting 'kicks in' and the desired colours appear.
Is there a command I can add in VBA to force all cells to change colour without any user interaction being required?
I'm using requery to load the data and that doesn't work.
I've also tried refresh, without any luck.
My problem is that, when the user makes a selection on the main form and the sub form data changes accordingly, the conditional formatting isn't automatically displayed. All fields remain white until the user passes his mouse over them, at which point the conditional formatting 'kicks in' and the desired colours appear.
Is there a command I can add in VBA to force all cells to change colour without any user interaction being required?
I'm using requery to load the data and that doesn't work.
I've also tried refresh, without any luck.