943,972 Members | Top Members by Rank

Ad:
Nov 8th, 2005
0

Access Date Problem

Expand Post »
I need help.
It's probably something so simple, but is it possible to have a query for "Week Ending"
I.E. if you input a date and it calculates 7 dates before and shows the results. something like
"-7<=[Enter Date]"
instead of using the "Between[Date]And[Date]"
Much Appreciated
Similar Threads
Reputation Points: 10
Solved Threads: 0
Newbie Poster
amdzw is offline Offline
1 posts
since Nov 2005
Dec 27th, 2005
0

Re: Access Date Problem

Daer,

Hopely this will help

In Access, the DateAdd function returns a date after which a certain time/date interval has been added.

The syntax for the DateAdd function is:

DateAdd ( interval, number, date )

interval is the time/date interval that you wish to add. It can be one of the following values:

Value Explanation

yyyy Year
q Quarter
m Month
y Day of the year
d Day
w Weekday
ww Week
h Hour
n Minute
s Second

number is the number of intervals that you wish to add.

date is the date to which the interval should be added.

For example:

DateAdd ('yyyy', 3, #22/11/2003#) would return '22/11/2006'
DateAdd ('q', 2, #22/11/2003#) would return '22/05/2004'
DateAdd ('m', 5, #22/11/2003#) would return '22/04/2004'
DateAdd ('n', 51, #22/11/2003 10:31:58 AM#) would return '22/11/2003 11:22:58 AM'
DateAdd('yyyy', -1, #22/11/2003#) would return '22/11/2002'


Best regards Harry
Reputation Points: 10
Solved Threads: 0
Newbie Poster
harryjo is offline Offline
1 posts
since Dec 2005

This thread is more than three months old

No one has posted to this discussion for at least three months. Please let old threads die and do not reply to them unless you feel you have something new and valuable to contribute that absolutely must be added to make the discussion complete. Otherwise, please start a new thread in this forum instead.
Message:
Previous Thread in Computer Science Forum Timeline: Evolution from 3G to 4G and beyond (5G)
Next Thread in Computer Science Forum Timeline: ADT - Identifying types ?





About Us | Contact Us | Advertise | Acceptable Use Policy
Forum Index | Build Custom RSS Feed


Follow us on Twitter


© 2011 DaniWeb® LLC