A Microsoft Office (Excel, Word) forum. OfficeFrustration

If this is your first visit, be sure to check out the FAQ by clicking the link above. You may have to register before you can post: click the register link above to proceed. To start viewing messages, select the forum that you want to visit from the selection below.

Go Back   Home » OfficeFrustration forum » Microsoft Access » Running & Setting Up Queries
Site Map Home Register Authors List Search Today's Posts Mark Forums Read  

7 Days from date



 
 
Thread Tools Display Modes
  #1  
Old November 13th, 2004, 11:33 PM
KAnoe
external usenet poster
 
Posts: n/a
Default 7 Days from date

I have a like Query that the user puts in a date. I would like the date to be
the start date for a week. How can I make it so that the Query will show 7
days of data. So if the user puts in 1 Nov 04 it will show all records from 1
- 7 Nov 04. Can I do this and if so how?

Thanks any help would be great.
  #2  
Old November 14th, 2004, 12:15 AM
fredg
external usenet poster
 
Posts: n/a
Default

On Sat, 13 Nov 2004 15:33:01 -0800, KAnoe wrote:

I have a like Query that the user puts in a date. I would like the date to be
the start date for a week. How can I make it so that the Query will show 7
days of data. So if the user puts in 1 Nov 04 it will show all records from 1
- 7 Nov 04. Can I do this and if so how?

Thanks any help would be great.


As criteria on the date field:

Between [Enter Date] and [Enter Date] + 7

You must also enter the [Enter Date] parameter (and it's datatype) in
the Parameters dialog box.
In query design view, click Query + Parameters
Write:

[Enter Date] Date/Time

in the dialog. Save the dialog.

Note: the dates must be entered in U.S. date format Month Day Year,
regardless of your regional settings.
--
Fred
Please only reply to this newsgroup.
I do not reply to personal email.
 




Thread Tools
Display Modes

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

vB code is On
Smilies are On
[IMG] code is Off
HTML code is Off
Forum Jump

Similar Threads
Thread Thread Starter Forum Replies Last Post
How to calculate days:Hours:Minutes: Kurewe Worksheet Functions 46 January 17th, 2005 11:11 AM
find lowest date value from multiple fields & WORK DAYS Functi John Spencer (MVP) Running & Setting Up Queries 4 January 3rd, 2005 10:43 PM
adding work days to a begin date to derive the end date Susan Running & Setting Up Queries 1 October 28th, 2004 05:53 PM
QDE (Quick Date Entry) Norman Harker Worksheet Functions 37 September 5th, 2004 01:24 AM
Adding a specified number of business days to a start date Frank Kabel Worksheet Functions 2 February 24th, 2004 04:46 PM


All times are GMT +1. The time now is 09:59 PM.


Powered by vBulletin® Version 3.6.4
Copyright ©2000 - 2024, Jelsoft Enterprises Ltd.
Copyright ©2004-2024 OfficeFrustration.
The comments are property of their posters.