I have an Access front end linked to SQL Server for the database. I have a main form containing a subform, set as a Datasheet
, to display the records in a grid to the user with conditional formatting. The recordset is not updateable, so I have a separate form which modifies the data. Once that form has modified the data, I need to call a Requery
to refresh the data.
The problem is, when this line is hit in the VBA, the subform's conditional formatting momentarily turns off and then back on again, which causes a 'flicker' effect to the end user, where they can temporarily see the numbers of the data rather than the colour coding as required.
I have tried to update the record in the table but as it isn't updateable, this is not an option. I have also tried setting Application.Echo False
before the execution to no avail. This seems to make no difference.
How can I stop this from happening?
The code line below:
Private Sub saveData_Click()
Dim x as Integer
Call frmSaveData(x) '// Calls the routine to save the data
Me.subFormData.Form.Requery '// Calls the subform query to refresh and formatting 'flickers'
End Sub