Private Sub CmdPartInforDelete_Click()
On Error GoTo Err_CmdPartInforDelete_Click
If Nz(Me![PartInformation_ChildForm]![txt_PartNumber]) <> "" Then
CurrentDb.Execute "delete from tbl_PartInformation where 编号=" & Nz(Me![PartInformation_ChildForm]![txt_PartNumber])
PartInformation_ChildForm.Form.Requery
Me.Requery
End If
MsgBox "okokokok"
Exit_CmdPartInforDelete_Click:
Exit Sub
Err_CmdPartInforDelete_Click:
MsgBox Err.Description
Resume Exit_CmdPartInforDelete_Click
End Sub
Private Sub CmdPartInforDelete_Click()
On Error GoTo Err_CmdPartInforDelete_Click
If Nz(Me![PartInformation_ChildForm]![txt_PartType]) <> "" Then
CurrentDb.Execute "delete from tbl_PartInformation where 型式=" & Nz(Me![PartInformation_ChildForm]![txt_PartType])
PartInformation_ChildForm.Form.Requery
Me.Requery
End If
MsgBox "okokokok"
Exit_CmdPartInforDelete_Click:
Exit Sub
Err_CmdPartInforDelete_Click:
MsgBox Err.Description
Resume Exit_CmdPartInforDelete_Click
End Sub