本文介绍了记录集的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧! 问题描述 29岁程序员,3月因学历无情被辞! 我在查询中使用了记录集,但只引用了sql字符串而 不是查询。我试图引用一个已经创建的查询,但是它已经下降了 结束。 我的工作原理: dim Rst2 as DAO.Recordset 设置Rst2 = db.OpenRecordset(StrSelectPrior) Rst2.MoveLast Me.TxtPrior.Value = Rst2.RecordCount 这不是: Dim Rst3为DAO.Recordset 设置Rst3 = db.OpenRecordset(" Myexistingquery") 它在最后一行说不到找到对象。 我们非常感谢你的帮助。 问候 彼得I have used recordsets in my query but only referenceing an sql string andnot a query. I tried to reference a query that was created but it fallsover.I have that works:dim Rst2 as DAO.RecordsetSet Rst2 = db.OpenRecordset(StrSelectPrior)Rst2.MoveLastMe.TxtPrior.Value = Rst2.RecordCountThis doesnt:Dim Rst3 as DAO.RecordsetSet Rst3 = db.OpenRecordset("Myexistingquery")it falls over on the last line by saying object not found.Your help would be much appreciated.RegardsPeter推荐答案 而不是查询。我尝试引用一个创建的查询,但是掉了。 我有它的工作原理: dim Rst2 as DAO.Recordset 设置Rst2 = db。 OpenRecordset(StrSelectPrior) Rst2.MoveLast Me.TxtPrior.Value = Rst2.RecordCount 这不是: Dim Rst3为DAO.Recordset 设置Rst3 = db.OpenRecordset(Myexistingquery) 它会在最后一行说不到找到的对象。 非常感谢你的帮助。 问候 Peter and not a query. I tried to reference a query that was created but itfalls over. I have that works: dim Rst2 as DAO.Recordset Set Rst2 = db.OpenRecordset(StrSelectPrior) Rst2.MoveLast Me.TxtPrior.Value = Rst2.RecordCount This doesnt: Dim Rst3 as DAO.Recordset Set Rst3 = db.OpenRecordset("Myexistingquery") it falls over on the last line by saying object not found. Your help would be much appreciated. Regards Peter 这篇关于记录集的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持! 上岸,阿里云!
06-18 20:15