Else
SQL = "INSERT INTO TABLE2 ([订单号],[产品],[数量],[箱号]) VALUES ('" & DN & "','" & Item & "','" & Qty2 & "','" & xiang & "')"
DoCmd.RunSQL SQL
End If
mark = ""
End If
End If
rs.MoveNext
Loop '循环
If mark = "x" Then
SQL = "INSERT INTO TABLE2 ([订单号],[产品],[数量],[箱号]) VALUES ('" & DN & "','" & Item & "','" & Qty3 & "','" & xiang & "')"
DoCmd.RunSQL SQL
DoCmd.SetWarnings True
End If