子表单过滤 [英] Subform filtering

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

问题描述

我在这里没有收到任何错误消息,但是在应用过滤器时我没有看到任何结果。主窗体中有2个未绑定的组合框,SetStudy和SetCDB。列[ROLE]的唯一可能值是9,反映在下面的代码中。 ([ROLE]的形式和表格具有行来源:CEC主席;CEC共同主席;CEC成员;DSMB主席;DSMB共同主席;" DSMB会员;CEC / DSMB主席;CEC / DSMB联合主席;CEC / DSMB会员)

I''m getting no error messages here, but I''m not getting any results visible when the filter is applied. There are 2 unbound combo boxes in the main form, SetStudy and SetCDB. The only possible values for the column [ROLE] are the 9 reflected in the code below. (The form and table for [ROLE] have the Row Source: "CEC Chair";"CEC Co-Chair";"CEC Member";"DSMB Chair";"DSMB Co-Chair";"DSMB Member";"CEC/DSMB Chair";"CEC/DSMB Co-Chair";"CEC/DSMB Member")

展开 | 选择 | Wrap | 行号

推荐答案

第12行:我!SubR.Form.Refresh


你不应该需要新的查询你正在做的是将过滤器应用于表单的当前记录集;然而,


第12行:我!SubR.Form.Requery
line 12: Me!SubR.Form.Refresh

you shouldn''t need a new query if all you are doing is applying a filter to the form''s current record-set; however,

line 12: Me!SubR.Form.Requery


谢谢,Z,但那不是。两种语法的表现相同。
Thanks, Z, but that wasn''t it. It''s performing the same with both syntaxes.


最常见的问题是格式错误的字符串,这就是为什么我总是首先构建我的字符串然后设置为表单或被调用的函数。


给我一点时间来仔细检查......
The most common issue is a malformed string which is why I always build my strings first and then set to the form or the called function.

Give me a moment to double check things....


这篇关于子表单过滤的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

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