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  

Date greater then two weeks



 
 
Thread Tools Display Modes
  #1  
Old February 7th, 2006, 04:00 PM posted to microsoft.public.access.queries
external usenet poster
 
Posts: n/a
Default Date greater then two weeks

Hi All,
i have a query with OpenDate as date.
I want to show the records where the OpenDate is greater than two weeks time
(in the criteria)
How can i accomplish that?
Thanks in advance
  #2  
Old February 7th, 2006, 04:34 PM posted to microsoft.public.access.queries
external usenet poster
 
Posts: n/a
Default Date greater then two weeks

Hi,


OpenDate is greater that two weeks time... than what? than today? and two
weeks is 14 days or there has been two end of weeks between the two dates?


14= DateDiff( "d", OpenDate, Now)

for 14 days, or, for two week changes

2 = DateDif"f("ww", OpenDate, Now)


Hoping it may help,
Vanderghast, Access MVP

"Lp12" wrote in message
...
Hi All,
i have a query with OpenDate as date.
I want to show the records where the OpenDate is greater than two weeks
time
(in the criteria)
How can i accomplish that?
Thanks in advance



  #3  
Old February 7th, 2006, 05:44 PM posted to microsoft.public.access.queries
external usenet poster
 
Posts: n/a
Default Date greater then two weeks

Try using the DateAdd

Where FieldName DateAdd("ww",2,Date())


--
\\// Live Long and Prosper \\//
BS"D


"Lp12" wrote:

Hi All,
i have a query with OpenDate as date.
I want to show the records where the OpenDate is greater than two weeks time
(in the criteria)
How can i accomplish that?
Thanks in advance

  #4  
Old February 12th, 2006, 08:47 AM posted to microsoft.public.access.queries
external usenet poster
 
Posts: n/a
Default Date greater then two weeks

Thanks a lot guys,
I used datediff......

"Ofer" wrote:

Try using the DateAdd

Where FieldName DateAdd("ww",2,Date())


--
\\// Live Long and Prosper \\//
BS"D


"Lp12" wrote:

Hi All,
i have a query with OpenDate as date.
I want to show the records where the OpenDate is greater than two weeks time
(in the criteria)
How can i accomplish that?
Thanks in advance

 




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
Adding info to query mjj4golf Running & Setting Up Queries 20 January 9th, 2006 03:29 AM
Trying to return the 1st date value greater than a starting date v Pants00 Running & Setting Up Queries 2 December 29th, 2005 09:46 PM
Addition to Turn cell red if today is greater or equal to date in cell Rich New Users 2 December 9th, 2004 03:06 AM
calculate weeks from a start date ( not yr weeks) Todd F. Worksheet Functions 6 November 27th, 2004 06:53 PM
Does date fall between two ranges? MR Worksheet Functions 4 January 14th, 2004 05:08 PM


All times are GMT +1. The time now is 10:56 AM.


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