Microsoft Access: Comparison of Two Dates

Manny74

Board Regular
Joined
May 6, 2016
Messages
124
Office Version
  1. 365
  2. 2016
Platform
  1. Windows
Hello All,

I am trying to clean my Microsoft Access database.

I have a list of client cases we have closed.

But every now and then, my employees will overlook that a client's case is closed and will enter services on a closed case.

The data looks like this:

Chart# Customer Name Case Status Date of Closure Date of Last Service
1111 John Doe Relocated 10/4/2017 10/27/2017

So I need to create a query that will show me when a client has a service after his/her case has been closed.

Any ideas?
 

Excel Facts

What did Pito Salas invent?
Pito Salas, working for Lotus, popularized what would become to be pivot tables. It was released as Lotus Improv in 1989.
In your query, under the "Date of Last Service" field, on the Criteria line, enter this:
Code:
> [Date of Closure]
Note that is these really aren't the name of your fields, you will need to adjust accordingly.
 
Upvote 0
Thanks Joe4.

When I enter [DATE CLOSED], it shows me clients who have a closure date, the same as their last service date.

I am looking for the query to show me services after the closure date......So a service date after the closure date....
 
Upvote 0
Did you miss the greater than sign in my previous post?
The criteria should look like:
Code:
[COLOR=#ff0000][B]>[/B][/COLOR] [DATE CLOSED]
The greater than sign (>) needs to be there!
 
Upvote 0

Forum statistics

Threads
1,221,668
Messages
6,161,158
Members
451,687
Latest member
KENNETH ROGERS

We've detected that you are using an adblocker.

We have a great community of people providing Excel help here, but the hosting costs are enormous. You can help keep this site running by allowing ads on MrExcel.com.
Allow Ads at MrExcel

Which adblocker are you using?

Disable AdBlock

Follow these easy steps to disable AdBlock

1)Click on the icon in the browser’s toolbar.
2)Click on the icon in the browser’s toolbar.
2)Click on the "Pause on this site" option.
Go back

Disable AdBlock Plus

Follow these easy steps to disable AdBlock Plus

1)Click on the icon in the browser’s toolbar.
2)Click on the toggle to disable it for "mrexcel.com".
Go back

Disable uBlock Origin

Follow these easy steps to disable uBlock Origin

1)Click on the icon in the browser’s toolbar.
2)Click on the "Power" button.
3)Click on the "Refresh" button.
Go back

Disable uBlock

Follow these easy steps to disable uBlock

1)Click on the icon in the browser’s toolbar.
2)Click on the "Power" button.
3)Click on the "Refresh" button.
Go back
Back
Top