I currently have the following code on my command button
Private Sub cmdDelete_Click()
On Error GoTo Err_cmdDelete_Click
With DoCmd
.SetWarnings False
.OpenQuery "qryDelete", acViewNormal, acEdit
.SetWarnings True
End With
txtDiscount.Requery
lstProducts.Requery
txtNetPrice.Requery
txtTotalPrice.Requery
Me.Requery
Exit_cmdDelete_Click:
Exit Sub
Err_cmdDelete_Click:
MsgBox Error$
Resume Exit_cmdDelete_Click
End Sub
However this does not make the query run again. So I need an extra line of code so that it forces the query to run again.
Hard to explain but I hope you understand what I mean