Access 2003 VBA Get Active 过滤器? [英] Access 2003 VBA Get Active filter?

查看:28
本文介绍了Access 2003 VBA Get Active 过滤器?的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

有没有办法通过 VBA 检索表单上的活动过滤器?

is there a way to retrieve the active filter on a form via VBA?

推荐答案

可以获取filter属性的内容(立即窗口):

You can get the contents of the filter property (immediate window):

?Screen.ActiveForm.Filter
(([FormName].FieldName="a"))

其他可能性:

sFilter=Me.Filter

sFilter=Forms!FormName.Filter

这篇关于Access 2003 VBA Get Active 过滤器?的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

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