0
我有一个错误:错误2115在Access 2016
Run-time error 2115
The macro or function set to the BeforeUpdate or ValidationRule property for this field is preventing Microsoft Access from saving the data in the field.
的代码如下,并访问打破了调试第2行:
Set rs = db.OpenRecordset("Select * from TransactionsC Where IDClient = '" & Extract & _
"' Order by IDTransaction DESC")
Set Me.EditTransactionsC_subform.Form.Recordset = rs
Me.EditTransactionsC_subform.Form.Requery
Set rs1 = db.OpenRecordset("Select Filed, Year, Notes from ClientNotes Where IDClient = '" & _
Extract & "' Order by Year DESC")
Set Me.ClientNotes_subform.Form.Recordset = rs1
Me.ClientNotes_subform.Form.Requery
我想不出什么错误是。
我得到运行时错误91.对象变量或块变量没有在修改后的行上设置。 – user7549177
对不起,我复制/粘贴具有RecordSet的子表单引用。看到我编辑的答案将其更改为RecordSource。我只使用过这种方法一次,它只是用于报告。仍然推荐其他方法。 – June7