Using Dates in a query

DasT

New Member
Joined
Sep 7, 2004
Messages
29
I've never used queries before so forgive me if this sound confusing :)

I have a table set up with several differn entries (too many to list) one of which is an 'action due by date' and another is 'Primary Contact' I need a query set up to check first the contact and then if the date is both between the dates of the following week (the reports will be pulled off on a friday) or anything less than this i.e. the due by date is anything earlier than the Friday of next week (something like < today + 7)

Then once its found all of these it needs to show all the different entries that correspond so these reports can be printed.

Hope thats been explained well enough, if it not let me know :)

thanks for your help
 
Actually I didn't but I forgot that the mathematical symbol for less than is also a code tag.

What it should be is

"<" DateAdd("ww",1,Date())

Remove the quotes when you use it.
 
Upvote 0

Excel Facts

What is =ROMAN(40) in Excel?
The Roman numeral for 40 is XL. Bill "MrExcel" Jelen's 40th book was called MrExcel XL.
I think i may have found a working formula i've used

<=DateAdd("d",7,Date())

which seems to work, if this looks wrong please let me know :)

thanks for all your help
 
Upvote 0
It looks fine.

How did you post the less than sign?
 
Upvote 0
Sorry, I mis read your post, Glad you got it working. Thanks for jumping in Norrie (I went home early yesterday)
Jim
 
Upvote 0

Forum statistics

Threads
1,221,819
Messages
6,162,155
Members
451,749
Latest member
zack_ken

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