• Status: Solved
  • Priority: Medium
  • Security: Public
  • Views: 1084
  • Last Modified:

Logical operators in Access query

Obviously, logical operators are different between Excel and Access.  I'm only used to the former, and I'm tired of guessing about the latter.  I need an answer ASAP.

I have a query that, for a date field, should pull records if that field is (a) blank or (b) between X & Y.  X & Y are input prompts, so criteria is....>=[X] AND <= [Y].  Tagging on the following never seems to include the blank dates....OR IsNull([fieldname]).  I've tried everything I can, but I don't think I'm understanding how to program "([X] AND [Y]) OR [Z]" into Access.

Help, please.
0
matsumotod
Asked:
matsumotod
1 Solution
 
jerryb30Commented:
WHERE datefield Is Null OR datefield Between [x] And [y]
0

Featured Post

Concerto's Cloud Advisory Services

Want to avoid the missteps to gaining all the benefits of the cloud? Learn more about the different assessment options from our Cloud Advisory team.

Tackle projects and never again get stuck behind a technical roadblock.
Join Now