I have the table "tblCustomerOrderProduct". Its primary key is the field "CustomerOrderProductId"
When I delete a record, from a form, I have certain instances when I need to delete an additional record in the same table.
I know the value of "CustomerOrderProductId" for the additional record I wish to delete.
To delete the additional record I use:
DoCmd.RunSQL "Delete * from tblCustomerOrderProduct where CustomerOrderProductId = " & CustomerOrderProductIdToDelete
I get the run time error 3188 - could not Update; Currently locked by another session on this machine.
I do I troubleshoot this?
It is interesting that I can add records but cannot delete!
When I delete a record, from a form, I have certain instances when I need to delete an additional record in the same table.
I know the value of "CustomerOrderProductId" for the additional record I wish to delete.
To delete the additional record I use:
DoCmd.RunSQL "Delete * from tblCustomerOrderProduct where CustomerOrderProductId = " & CustomerOrderProductIdToDelete
I get the run time error 3188 - could not Update; Currently locked by another session on this machine.
I do I troubleshoot this?
It is interesting that I can add records but cannot delete!