We help IT Professionals succeed at work.
Get Started

Date range access query/report

273 Views
Last Modified: 2012-05-12
I have a report based on a query which has 2 date columns '[DATE IN]' & '[DATE OUT]'.

I want to run report and pick all rows which has no entry in [DATE OUT] or [DATE OUT] is between two dates selected from userform.

I have setup variables startdate and enddate to the range of dates selected on userform. Running following produces the rows which has [DATE OUT] within range, and is correct

DoCmd.OpenReport "Movement", acViewReport, , "[DATE OUT] " & "Between #" & startdate & " # AND #" & enddate & "#"

I want to also pick row which doesn't have an entry in [DATE OUT].

I as assuming [DATE OUT] will be NULL ( or "" ?)

How can I modify the OpenReport to include rows with no date in [DATE OUT] field ?
Comment
Watch Question
CERTIFIED EXPERT
Commented:
This problem has been solved!
Unlock 2 Answers and 6 Comments.
See Answers
Why Experts Exchange?

Experts Exchange always has the answer, or at the least points me in the correct direction! It is like having another employee that is extremely experienced.

Jim Murphy
Programmer at Smart IT Solutions

When asked, what has been your best career decision?

Deciding to stick with EE.

Mohamed Asif
Technical Department Head

Being involved with EE helped me to grow personally and professionally.

Carl Webster
CTP, Sr Infrastructure Consultant
Ask ANY Question

Connect with Certified Experts to gain insight and support on specific technology challenges including:

  • Troubleshooting
  • Research
  • Professional Opinions
Did You Know?

We've partnered with two important charities to provide clean water and computer science education to those who need it most. READ MORE