I have tried to delete rows in a table with same ID in access database by using the following vb code with a click on command button, but it deletes only a single row instead of entire rows with same ID. Kindly help me to solve this problem.
Set rst = dbs.OpenRecords et("select * from Bills where Bill_ID =" _
& Me.cbid)
With rst
If Not .EOF Then
.delete
End If
End With
Set rst = dbs.OpenRecords et("select * from Bills where Bill_ID =" _
& Me.cbid)
With rst
If Not .EOF Then
.delete
End If
End With
Comment