[mso] Re: Access 2002: Date Filter Formula Calculation Help Needed!

  • From: Cathy.Evans@xxxxxxxxx
  • To: mso@xxxxxxxxxxxxx
  • Date: Wed, 17 Aug 2005 10:20:26 -0400

Thanks, Jim, I'm always forgetting about DateDiff.  I'm wondering if
there's something about the 'Year' field that's not right.  Still getting
all 'Yes' unless the field is null.  Here's a sample of results.  Also
noticed a couple of the dates are 2 digit.  I really don't know that much
about how they have their table set up, I only extract the data, then do
calculations/reporting on it.  Could there be a problem with this field is
why only the nulls are returning a 'No', and not the dates 2 years and
back?  What do you think?  Thanks again, Cathy

Year  DateFilter
2004  Yes
04    Yes
2005  Yes
2005  Yes
2005  Yes
04    Yes
2004  Yes
2005  Yes
2004  Yes
2001  Yes
2001  Yes
      No
      No
      No
      No


                                                                                
                                   
                      "Jim Pettit"                                              
                                   
                      <jimpettit@xxxxxxxx      To: <mso@xxxxxxxxxxxxx>          
                                   
                      m>                                                        
                                   
                      Sent by:                 cc:                              
                                   
                      mso-bounce@freelist                                       
                                   
                      s.org                    Subject:  [mso] Re: Access 2002: 
Date Filter Formula Calculation    
                      08/17/2005 09:48 AM         Help Needed!                  
                                   
                      Please respond to                                         
                                   
                      mso                                                       
                             ..... 
                                                                                
                                   
                                                                                
                                   




Cathy--

You gotta love the DateDiff function. Give this a try:

DataFilter: Iif(DateDiff('yyyy', [Year], Now()) > 2, "Yes", "No")

--Jim





-----------------------------------------------------------------------------------------------------
The information transmitted is intended only for the person
or entity to which it is addressed and may contain proprietary,  
business-confidential and/or privileged material.
If you are not the intended recipient of this message you 
are hereby notified that any use, review, retransmission, 
dissemination, distribution, reproduction or any action taken
in reliance upon this message is prohibited. If you received
this in error, please contact the sender and delete the 
material from any computer.  Any views expressed in this message
are those of the individual sender and may not necessarily reflect 
the views of the company.  
-------------------------------------------------------------------------------------------------------

*************************************************************
You are receiving this mail because you subscribed to mso@xxxxxxxxxxxxx or 
MicrosoftOffice@xxxxxxxxxxxxxxxx

To send mail to the group, simply address it to mso@xxxxxxxxxxxxx

To Unsubscribe from this group, send an email to 
mso-request@xxxxxxxxxxxxx with the word "unsubscribe" (without the quotes) in 
the subject line.

Or, visit the group's homepage and use the dropdown menu.  This will also allow 
you to change your email settings to digest or vacation (no mail).
//www.freelists.org/webpage/mso

To be able to use the files section for sharing files with the group, send a 
request to mso-moderators@xxxxxxxxxxxxx and you will be sent an invitation with 
instructions.  Once you are a member of the files group, you can go here to 
upload/download files:
http://www.smartgroups.com/vault/msofiles
*************************************************************

Other related posts: