1. you did not say what the problem is
2. your query formatting is ugly
yes, i know Microsoft Access throws the extra parentheses in for you, but you simply
must take responsibility for the parentheses yourself
i've done a quick analysis of your second query and here's what it says:
Code:
WHERE (
HIDATA60404.ELSDATE Between [Beginning Date] And [Ending Date]
AND [HIDATA60404]![ELSSTORE] Like [store]
AND [HIDATA60404]![CATEGORY] Like [cat]
)
OR (
[store] Is Null
AND [cat] Is Null
)
my questions to you: are you sure you want that particular logic, and are [store] and [cat] actual column names?