Data2.RecordSource = "select distinct 客户 from 单号表 where 客户 in (select distinct 客户 from 客户表 where 地区='河南')"
Data2.Refresh
我的意思是列出单号表中所有地区为“河南”的客户。可是执行这个查询以后,我发现所有的客户都被列出来了?这是怎么搞得?
...全文
295打赏收藏
为什么查询结果有误?
Data2.RecordSource = "select distinct 客户 from 单号表 where 客户 in (select distinct 客户 from 客户表 where 地区='河南')" Data2.Refresh 我的意思是列出单号表中所有地区为“河南”的客户。可是执行这个查询以后,我发现所有的客户都被列出来了?这是怎么搞得?