Want to win a PS4? Go Premium and enter to win our High-Tech Treats giveaway. Enter to Win

x
?
Solved

Logical operators in Access query

Posted on 2007-03-29
1
Medium Priority
?
1,076 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 2000 total points
ID: 18817966
WHERE datefield Is Null OR datefield Between [x] And [y]
0

Featured Post

VIDEO: THE CONCERTO CLOUD FOR HEALTHCARE

Modern healthcare requires a modern cloud. View this brief video to understand how the Concerto Cloud for Healthcare can help your organization.

Question has a verified solution.

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

If you need a simple but flexible process for maintaining an audit trail of who created, edited, or deleted data from a table, or multiple tables, and you can do all of your work from within a form, this simple Audit Log will work for you.
Explore the ways to Unlock VBA Project Password Excel 2010 & 2013 documents. Go through the article and perform the steps carefully to remove VBA Excel .xls file.
Polish reports in Access so they look terrific. Take yourself to another level. Equations, Back Color, Alternate Back Color. Write easy VBA Code. Tighten space to use less pages. Launch report from a menu, considering criteria only when it is filled…
Have you created a query with information for a calendar? ... and then, abra-cadabra, the calendar is done?! I am going to show you how to make that happen. Visualize your data!  ... really see it To use the code to create a calendar from a q…

618 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