MS访问:确定对象类型对象、类型、MS

2023-09-08 11:10:14 作者:官方小可爱

有没有一种方法来确定对象类型,传递引用函数时?

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.

要保持功能一般,我想传递一个裁判为任何一个窗体或报表作为一个对象,例如: 函数gfSecurity_Permission(OBJ为对象)

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)

不过,我需要确定键入函数内的对象。

However, I'd need to determine the type of the object within the function.

有谁知道的方式做到这一点?

Does anyone know of a way to do that?

MTIA

推荐答案

看看

的typeof和typeName的