Solved

Logical operators in Access query

Posted on 2007-03-29
1
1,040 Views
Last Modified: 2008-01-09
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
Comment
Question by:matsumotod
[X]
Welcome to Experts Exchange

Add your voice to the tech community where 5M+ people just like you are talking about what matters.

  • Help others & share knowledge
  • Earn cash & points
  • Learn & ask questions
1 Comment
 
LVL 26

Accepted Solution

by:
jerryb30 earned 500 total points
ID: 18817966
WHERE datefield Is Null OR datefield Between [x] And [y]
0

Featured Post

Industry Leaders: We Want Your Opinion!

We value your feedback.

Take our survey and automatically be enter to win anyone of the following:
Yeti Cooler, Amazon eGift Card, and Movie eGift Card!

Question has a verified solution.

If you are experiencing a similar issue, please ask a related question

Phishing attempts can come in all forms, shapes and sizes. No matter how familiar you think you are with them, always remember to take extra precaution when opening an email with attachments or links.
Preparing an email is something we should all take special care with – especially when the email is for somebody you may not know very well. The pressures of everyday working life stacked with a hectic office environment can make this a real challen…
Using Microsoft Access, learn some simple rules for how to construct tables in a relational database. Split up all multi-value fields into single values: Split up fields that belong to other things into separate tables: Make sure that all record…
Access reports are powerful and flexible. Learn how to create a query and then a grouped report using the wizard. Modify the report design after the wizard is done to make it look better. There will be another video to explain how to put the final p…

696 members asked questions and received personalized solutions in the past 7 days.

Join the community of 500,000 technology professionals and ask your questions.

Join & Ask a Question