PC Review


Reply
Thread Tools Rate Thread

difference of dates

 
 
=?Utf-8?B?R3JlZ0I=?=
Guest
Posts: n/a
 
      13th Aug 2007
How can I check for entries made during the last week, what would I put in
for the query. I do have a field where it stores the date.

Also how would I get a report for all my data broken down into weeks?
Week of 8/1
week of 8/8
etc.


Thanks,
Greg Blanche
 
Reply With Quote
 
 
 
 
John W. Vinson
Guest
Posts: n/a
 
      13th Aug 2007
On Mon, 13 Aug 2007 05:56:05 -0700, GregB <(E-Mail Removed)>
wrote:

>How can I check for entries made during the last week, what would I put in
>for the query. I do have a field where it stores the date.


There are a number of date handling functions built in to Access. Just what do
you mean by "the last week" - Monday through Friday? Sunday through Saturday?
Monday through Sunday? To get all records from Sunday before last through last
Saturday, you can use a query criterion of

>= DateAdd("d", -8 + Weekday(Date()), Date) AND < DateAdd("d", -1 + Weekday(Date()), Date())


>Also how would I get a report for all my data broken down into weeks?
>Week of 8/1
>week of 8/8
>etc.


Take a look at DatePart("ww", [datefield]) - it will give you the week number
of the year.

John W. Vinson [MVP]
 
Reply With Quote
 
 
 
Reply

Thread Tools
Rate This Thread
Rate This Thread:

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are Off


Similar Threads
Thread Thread Starter Forum Replies Last Post
Dates dates dates dates... SQL and ASP.NET David Lozzi Microsoft ASP .NET 1 30th Sep 2005 03:18 PM
Difference between bin and obj directories and difference between project references and dll references jakk Microsoft ASP .NET 4 22nd Mar 2005 10:23 PM
how do i download difference account messages into difference fol. =?Utf-8?B?Ymx1X2VibHVl?= Microsoft Outlook 1 10th Oct 2004 05:13 PM
Dates, Dates, Dates bw Microsoft Access Reports 1 1st Feb 2004 06:08 AM
Dates Dates and more Dates Frick Microsoft Excel Worksheet Functions 1 29th Aug 2003 06:28 AM


Features
 

Advertising
 

Newsgroups
 


All times are GMT +1. The time now is 12:32 PM.