Foxtable(狐表)用户栏目专家坐堂 → 这段筛选代码为什么会报错?


  共有8316人关注过本帖平板打印复制链接

主题:这段筛选代码为什么会报错?

帅哥哟,离线,有人找我吗?
wsxdwh
  1楼 | 信息 | 搜索 | 邮箱 | 主页 | UC


加好友 发短信
等级:三尾狐 帖子:645 积分:4583 威望:0 精华:0 注册:2012/11/12 14:27:00
这段筛选代码为什么会报错?  发帖心情 Post By:2012/12/19 12:59:00 [只看该作者]

请专家指点,下面代码能正常输入,但执行时报错,如何修改

Dim qu As WinForm.ComboBox = e.Form.Controls("区")
Dim zxx As WinForm.ComboBox = e.Form.Controls("中小学")
Dim xx As WinForm.ComboBox = e.Form.Controls("学校")
Dim xm As WinForm.ComboBox = e.Form.Controls("项目")
Tables("报名表").Filter="区= '" & qu.Text & "'And 中小学like '*" & zxx.Text & "*'and 学校 like '*" & xx.Text & "*'and参赛项目like '*" & xm.Text & "*'"

 

只选择“区”提示:Syntax error: Missing operand after ''**'' operator.

选择“区”,“中小学”提示:Syntax error: Missing operand after ''*小学组*'' operator.


 回到顶部