Order does not disappear
I have a list boc called LstStockreceipt. When i click the order, the order is deleted indeed, but it stays on the list and does not disappear.I have to close the form,and
open it again, and then the order is not seen .Is it possible to make the deleted order disappear immediately ?
Dim strSQL As String
Dim frm As Form
Set frm = Forms![Frep]
‘*******************************************
‘2. delete the order
DoCmd.SetWarnings False
strSQL = “DELETE * FROM Orders WHERE orderID = ” & frm!LstStockReceipt & “;”
DoCmd.RunSQL strSQL
strSQL = “DELETE * FROM [order details] WHERE orderID = ” & frm!LstStockReceipt & “;”
DoCmd.RunSQL strSQL
Application.Echo True
DoCmd.SetWarnings True
frm.requery
frm![LstStockReceipt].Requery
frm![current].Requery