查看: 1207|回复: 5
|
[Access 求助] Multiple filter
[复制链接]
|
|
如题, 请问有没有人知道要如何在ms access里使用多个 combo box 或者 list box 的 value 来 filter subform 里面的资料?
请问可不可以用 select * from Mytable where custid = 1 and name = blue ?
可是为什么出现 you cancelled the previous operation
[ Last edited by bluesea_520 on 17-1-2005 at 11:10 AM ] |
|
|
|
|
|
|
|
发表于 17-1-2005 12:16 PM
|
显示全部楼层
bluesea_520 于 17-1-2005 09:56 AM 说 :
如题, 请问有没有人知道要如何在ms access里使用多个 combo box 或者 list box 的 value 来 filter subform 里面的资料?
请问可不可以用 select * from Mytable where custid = 1 and name = blue ?
可是为 ...
"select * from [Mytable] where (([custid] = 1) and ([name] = 'blue'))" |
|
|
|
|
|
|
|
发表于 17-1-2005 05:04 PM
|
显示全部楼层
你的问题很模糊呢... 可以再描述吗? 
不太明白是什么时候出现那 error message 的.  |
|
|
|
|
|
|
|

楼主 |
发表于 17-1-2005 05:51 PM
|
显示全部楼层
sson 于 17-1-2005 12:16 PM 说 :
"select * from [Mytable] where (([custid] = 1) and ([name] = 'blue'))"
我知道问题了, 原来 character 和 string 需要用 ''
谢谢大家 |
|
|
|
|
|
|
|
发表于 17-1-2005 06:11 PM
|
显示全部楼层
bluesea_520 于 17-1-2005 05:51 PM 说 :
我知道问题了, 原来 character 和 string 需要用 ''
谢谢大家
哈哈,客气了。
这是常人常犯的错误,只要多加留意就行了。
编程愉快! |
|
|
|
|
|
|
|

楼主 |
发表于 18-1-2005 08:27 PM
|
显示全部楼层
goatstudio 于 17-1-2005 05:04 PM 说 :
你的问题很模糊呢... 可以再描述吗? 
不太明白是什么时候出现那 error message 的.
其实我要做的是用一个或多个combo box 的 value 来过滤我要的资料。。 |
|
|
|
|
|
|
| |
本周最热论坛帖子
|