我正在使用这个SQL语句在access中过滤数据,它工作得很好,唯一的问题是"Or“语句会导致查询的设计视图完全崩溃,从而导致整个access的崩溃。
我有大约。表中有70列。如果我在4-5列上使用query的设计视图,那么它可以工作,但是如果我把它放在更多的列上,或者所有列上,它就会崩溃。我注意到access会自动在“设计”视图的列中添加条件。你知道为什么会是这样吗?在我尝试在“设计”视图中查看查询之前,一切都正常。
WHERE ((table.[column]) Like [Forms]![form]![combo-box] Or [Forms]![form]![combo-box] Is Null)
AND ((table.[column2]) Like [Forms]![form]![combo-box2] Or [Forms]![form]![combo-box2] Is Null) AND ...发布于 2013-04-09 23:34:01
试一试
WHERE (
(
( [Forms]![form]![combo-box] Is Not Null )
AND ( table.[column] Like [Forms]![form]![combo-box] )
)
Or ( [Forms]![form]![combo-box] Is Null )
)
AND (
(
( [Forms]![form]![combo-box2] Is Not Null )
AND ( table.[column2] Like [Forms]![form]![combo-box2] )
)
Or ( [Forms]![form]![combo-box2] Is Null )
)
AND ...https://stackoverflow.com/questions/15902506
复制相似问题