Calaculations Two Weeks Before

adenwalker

Registered User.
Local time
Today, 20:19
Joined
Jan 18, 2005
Messages
39
Hi,

I have a table which contains many fields of which one is a date field. How would i create a query so that it shows every record which is between the date the query is run and two weeks from the day the query is run?

Thanks
 
Query

Try this:

In the Criteria Row of the Date Field in the Query put:

Between Date() And DateAdd('ww',2,Date())

Which shows the records with dates between the current date and the date two weeks from the current date.

In case you want the records for the past two weeks put:

Between Date() And DateAdd('ww',-2,Date())
 
Last edited:
it doesn't seem to work. It finds the date two weeks from today but nothing inbetween.
 
Date

Hmm, it worked for me.

Perhaps you can post your db (without sensitive data) and I'll have a look.
 

Users who are viewing this thread

Back
Top Bottom