MS访问:确定对象类型 [英] MS Access : Determine Object Type

查看:158
本文介绍了MS访问:确定对象类型的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

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

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的

这篇关于MS访问:确定对象类型的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

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