为什么要克隆MS-Access记录集? [英] Why clone an MS-Access recordset?

查看:72
本文介绍了为什么要克隆MS-Access记录集?的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我是VBA的新手,正试图了解别人的代码.

I'm a newbie at VBA and attempting to understand someone else's code.

设置rstClone = Me.RecordsetClone
rstClone.MoveFirst

Set rstClone = Me.RecordsetClone
rstClone.MoveFirst

为什么必须克隆记录集?为什么代码不能是Me.Recordset.MoveFirst?

Why does the recordset have to be cloned? Why can't the code be Me.Recordset.MoveFirst?

推荐答案

您可能希望使用recordsetclone,因为您不希望影响me.recordset.movefirst会在表单中显示的记录.

You may wish to use the recordsetclone because you do not wish to affect the records displayed in the form, which me.recordset.movefirst would do.

这篇关于为什么要克隆MS-Access记录集?的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆