根据子表单上文本框中键入的内容过滤子表单
我正在尝试根据子表单上的文本框中键入的内容来过滤子表单上显示的记录。该子表单称为“用户”,位于“组”表单上。在“用户”子表单上有一个名为 txtFilter 的文本框。如果我在 txtFilter 中输入“W”,我只想显示用户的姓氏或用户名以“W”开头的记录。当我继续输入 W...A...LI 时,只希望显示姓氏或用户名以“Wal”开头的用户。
我有一些模糊的想法,我必须使用记录集属性或子表单的 serverFilter 来执行此操作,但我真的不知道该怎么做。请帮我!
I'm trying to filter the records shown on a subform based on what is typed in a textbox on the subform. The subform is called Users, and it is on the Group form. On the Users subform there is a textbox called txtFilter. If I type "W" in txtFilter, I want to show only records in which the User's lastName or userName begins with a "W". As I continue typing W...A...L I want only Users whose lastName or UserName begin with "Wal" to show up.
I have some vague idea that I have to use either the recordset property or the subform's serverFilter to do this, but I'm really at a loss as to what to do. Please help me!
如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。
绑定邮箱获取回复消息
由于您还没有绑定你的真实邮箱,如果其他用户或者作者回复了您的评论,将不能在第一时间通知您!
发布评论
评论(2)
快速更新 Access 2013 的 @dmr 响应:
修改后的响应:
Quick update to @dmr response for Access 2013:
Modified response: