Private Sub c_post_all_Click()
On Error Resume Next
DoCmd.Hourglass False
DoCmd.RunSQL ("delete from inv_trans_detail where bill = '" & bill & "'") '删除表中指定条件记录,BILL可在窗体中设置的条件
'DoCmd.RunSQL ("delete from inv_trans_head") '删除整张表的记录
DoCmd.SetWarnings True
End Sub