G Guest Oct 28, 2003 #1 I am trying to get all of my records that have a date(no time) 1 year ago from today or greater. Thanks in advance
I am trying to get all of my records that have a date(no time) 1 year ago from today or greater. Thanks in advance
D Dale Fye Oct 28, 2003 #2 Select * FROM yourTable Where [DateField] <= DateAdd("yyyy", -1, Date)) -- HTH Dale Fye I am trying to get all of my records that have a date(no time) 1 year ago from today or greater. Thanks in advance
Select * FROM yourTable Where [DateField] <= DateAdd("yyyy", -1, Date)) -- HTH Dale Fye I am trying to get all of my records that have a date(no time) 1 year ago from today or greater. Thanks in advance
L Liza Oct 28, 2003 #3 Try: <Now()-365 In the criteria line of the date field. -----Original Message----- I am trying to get all of my records that have a date(no Click to expand... time) 1 year ago from today or greater. Thanks in advance
Try: <Now()-365 In the criteria line of the date field. -----Original Message----- I am trying to get all of my records that have a date(no Click to expand... time) 1 year ago from today or greater. Thanks in advance
D Dale Fye Oct 28, 2003 #4 Liza, Not every year has 365 days. -- HTH Dale Fye Try: <Now()-365 In the criteria line of the date field. -----Original Message----- I am trying to get all of my records that have a date(no Click to expand... time) 1 year ago from today or greater. Thanks in advance
Liza, Not every year has 365 days. -- HTH Dale Fye Try: <Now()-365 In the criteria line of the date field. -----Original Message----- I am trying to get all of my records that have a date(no Click to expand... time) 1 year ago from today or greater. Thanks in advance
V Van T. Dinh Oct 28, 2003 #5 Just a small corrrection: ....Where [DateField] >= DateAdd("yyyy", -1, Date()) i.e. changing less than or equal to greater than or equal and addition of the opening parenthesis just after Date. HTH Van T. Dinh MVP (Access)
Just a small corrrection: ....Where [DateField] >= DateAdd("yyyy", -1, Date()) i.e. changing less than or equal to greater than or equal and addition of the opening parenthesis just after Date. HTH Van T. Dinh MVP (Access)
D Dale Fye Oct 29, 2003 #6 Guess it depends on how you interpret "1 year ago from today or greater". I interpreted it to mean 1 year or more from todays date, you obviously interpreted it to mean between one year ago and today. -- HTH Dale Fye message Just a small corrrection: ....Where [DateField] >= DateAdd("yyyy", -1, Date()) i.e. changing less than or equal to greater than or equal and addition of the opening parenthesis just after Date. HTH Van T. Dinh MVP (Access)
Guess it depends on how you interpret "1 year ago from today or greater". I interpreted it to mean 1 year or more from todays date, you obviously interpreted it to mean between one year ago and today. -- HTH Dale Fye message Just a small corrrection: ....Where [DateField] >= DateAdd("yyyy", -1, Date()) i.e. changing less than or equal to greater than or equal and addition of the opening parenthesis just after Date. HTH Van T. Dinh MVP (Access)
V Van T. Dinh Oct 29, 2003 #7 Yes, I agreed. After I posted, I re-read the original question and wondered whether I was right about >= or not ...
Yes, I agreed. After I posted, I re-read the original question and wondered whether I was right about >= or not ...