相关疑难解决方法(0)

MS Access : Determine Object Type

Is there a way to determine the Object type, when passing a reference to a function?

I'm using a security permissions function, which determines if the user has permission to view/edit the Form passed to it by reference. I'd like to expand this to include reports as well.

To keep the function generic, I'd like to pass a ref for either a Form or a Report as an Object, eg: function gfSecurity_Permission(obj as Object)

但是,我需要确定type函数中的对象.

有谁知道这样做的方法?

MTIA

ms-access object access-vba

8
推荐指数
2
解决办法
1万
查看次数

在Access 2003/2007中打开记录集

自从我使用Access代码以来已经有好几年了,这让我觉得自己很疯狂.

我只是不记得任何事情,我想要做的就是在代码中打开一个记录集,我在网上找不到任何内容,或者我尝试过的任何代码排列.

缺点:

Dim rsSystem As Recordset
Dim sSQL As String

sSQL = "SELECT * FROM Table"
Set rsSystem = CurrentDB.OpenRecordset(sSQL)
Run Code Online (Sandbox Code Playgroud)

我错过了什么神圣的地狱?

提前致谢.

ms-access vba

7
推荐指数
2
解决办法
6万
查看次数

标签 统计

ms-access ×2

access-vba ×1

object ×1

vba ×1