设为首页收藏本站Access中国

Office中国论坛/Access中国论坛

 找回密码
 注册

QQ登录

只需一步,快速开始

返回列表 发新帖
查看: 2856|回复: 10
打印 上一主题 下一主题

[窗体] 【求助】重新输入记录,点击搜索,发现没用了,这是为何

[复制链接]
1#
发表于 2011-8-9 10:44:54 | 显示全部楼层
yangruihao 发表于 2011-8-9 10:35
上次论坛位元老级人物帮忙改的,试了一下可以用,可是我把原先的记录删了,然后重新输入几个记录,点击搜索 ...

Private Sub Command4_Click()
Dim strwh As String
strwh = "True"
If IsNull(Me.Text0.Value) = False Then
    strwh = strwh & " and 客户姓名 like '*" & Me.Text0.Value & "*'"
End If
If IsNull(Me.Text2.Value) = False Then
    strwh = strwh & " and 单位 like '*" & Me.Text2 & "*'"
End If

Me.表1.Form.Filter = strwh
Me.表1.Form.FilterOn = True
End Sub
2#
发表于 2011-8-9 17:06:12 | 显示全部楼层
yangruihao 发表于 2011-8-9 15:57
回复 todaynew 的帖子

我试了好些记录,经常查不到哇,怎么办,怎么办,怎么办

使劲查
您需要登录后才可以回帖 登录 | 注册

本版积分规则

QQ|站长邮箱|小黑屋|手机版|Office中国/Access中国 ( 粤ICP备10043721号-1 )  

GMT+8, 2024-6-7 08:12 , Processed in 0.184524 second(s), 25 queries .

Powered by Discuz! X3.3

© 2001-2017 Comsenz Inc.

快速回复 返回顶部 返回列表