我想将查询结果链接到文本框,但出现此错误:这是我的代码:
Dim rst As DAO.Recordset
Set rst = CurrentDb.OpenRecordset("SELECT XValue, YValue,Wert FROM tb_DCM_Daten WHERE (FzgID=" & Forms!frm_fahrzeug!ID & " AND Name='" & List2.Value & "')")
Text10.Text = rst!XValue //error in this line
应该是返回 ca 20 记录
为什么我会收到此错误,我该如何解决?