Private Sub Command7_Click()
On Error GoTo Err_Command7_Click
Dim zy As String
zy = "
UPDATE 准备 SET 准备.备注 = iif(准备.本金=0,"补偿金","退款")
WHERE 准备.备注 is null;"
DoCmd.RunSQL zy
Exit_Command7_Click:
Exit Sub
Err_Command7_Click:
MsgBox Err.Description
Resume Exit_Command7_Click