我的表单包含一个组合框,我在其中选择一条记录并填充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 )。有什么建议么?