0

我的表单包含一个组合框,我在其中选择一条记录并填充txt子表单中的字段。在save按钮上,我有以下 VBA 代码。

Private Sub Save_Record_Click()
    If Forms![frmAccount]![subAcctAppointment].Form![ApptID] = Forms![frmAccount]![subAccount].Form![txtAcctApptID] Then
        Forms![frmAccount]![subAcctAppointment].Form![Added].Value = -1
    End If
End Sub

如果subaccount表单中只有一条记录,它可以工作,但似乎无法-1在以下记录上放置复选标记(the )。有什么建议么?

4

0 回答 0