Help with a query

twuncher

New Member
Joined
Aug 4, 2003
Messages
12
I have a query with a column destruction date which is a date...
i want another column which compares the destruction date with the currant date and puts a Yes or No as to wether it can be destroyed or not..

eventualy id prolly like to make it so it will alert the user when a file can be destroyed but i think my skills arent quite up to that yet.

thx for your time :)
 

Excel Facts

Remove leading & trailing spaces
Save as CSV to remove all leading and trailing spaces. It is faster than using TRIM().
In your query, in a blank field to the right of [DestructionDate], create this calculation --
Code:
DestructionDue:Iif([DestructionDate]>Date(),"No","Yes")
Save the query and run it to check the logic. If OK, you're in business. If reversed, change the Yes and No around.

Further option:
In the Criteria row below the new field, type "yes"
Now when you run the query you will ONLY see the list of files ready for destruction.

HTH

Denis
 
Upvote 0

Forum statistics

Threads
1,221,558
Messages
6,160,484
Members
451,651
Latest member
Penapensil

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