I am trying to emulate the "delete" keyboard button in vba to delete a selected record from a subform,
and I am trying to make this happen after running an update Query.
But nothing happens, literally, not even warnings. I tried to do it with DoCmd.RunCommand acCmdDeleteRecord as Access suggests but I am not getting any results.
Any help would be very much appreciated.
and I am trying to make this happen after running an update Query.
Code:
Private Sub deletebtn_Click()
CurrentDb.Execute ("qrupdateqty")
Call DoCmd.RunCommand(Command:=acCmdDeleteRecord)
Forms!frmCustomers!subfShowSales.Requery
Forms!frmEditSales!subfListProducts.Requery
End Sub
But nothing happens, literally, not even warnings. I tried to do it with DoCmd.RunCommand acCmdDeleteRecord as Access suggests but I am not getting any results.
Any help would be very much appreciated.