I am using this code to delete a record
Private Sub CmdRemove_Click()
If MsgBox("Are you sure you want to delete Part Number " & Me.PartNo & " from the order", vbYesNo) = vbYes Then
DoCmd.SetWarnings False
DoCmd.RunCommand acCmdDeleteRecord
DoCmd.SetWarnings True
Me.Requery
Else
End If
End Sub
each time I get the eror 2046 the action delete record is not available now
This use to work.
Any ideas
thanks
Private Sub CmdRemove_Click()
If MsgBox("Are you sure you want to delete Part Number " & Me.PartNo & " from the order", vbYesNo) = vbYes Then
DoCmd.SetWarnings False
DoCmd.RunCommand acCmdDeleteRecord
DoCmd.SetWarnings True
Me.Requery
Else
End If
End Sub
each time I get the eror 2046 the action delete record is not available now
This use to work.
Any ideas
thanks