Solved

Logical operators in Access query

Posted on 2007-03-29
1
1,004 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
1 Comment
 
LVL 26

Accepted Solution

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

Featured Post

Complete Microsoft Windows PC® & Mac Backup

Backup and recovery solutions to protect all your PCs & Mac– on-premises or in remote locations. Acronis backs up entire PC or Mac with patented reliable disk imaging technology and you will be able to restore workstations to a new, dissimilar hardware in minutes.

Join & Write a Comment

In the article entitled Working with Objects – Part 1 (http://www.experts-exchange.com/Microsoft/Development/MS_Access/A_4942-Working-with-Objects-Part-1.html), you learned the basics of working with objects, properties, methods, and events. In Work…
I see at least one EE question a week that pertains to using temporary tables in MS Access.  But surprisingly, I was unable to find a single article devoted solely to this topic. I don’t intend to describe all of the uses of temporary tables in t…
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…

763 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

Need Help in Real-Time?

Connect with top rated Experts

14 Experts available now in Live!

Get 1:1 Help Now