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

  • From: "James LaBorde" <jlaborde@xxxxxxxxx>
  • To: <mso@xxxxxxxxxxxxx>
  • Date: Wed, 17 Aug 2005 11:30:14 -0700

Cathy,

Is the date field always a four digit year or null or is it sometimes =
something completely different?  From the error it appeared you were =
getting it looks like it is only the four digit year (when you convert =
it into a date it will start at 12/31/1899 as day 0 and count forward I =
believe, hence your 1905 dates).  What you could do is since the field =
appears to be text, convert it to a numeric value and simple subtract =
from the Datepart("yyyy", Date()) function.  This would give you how =
many years old it is.

Try it and see if that doesn't give you what you want.

James

-----Original Message-----
From: mso-bounce@xxxxxxxxxxxxx [mailto:mso-bounce@xxxxxxxxxxxxx]On
Behalf Of Cathy.Evans@xxxxxxxxx
Sent: Wednesday, August 17, 2005 10:58 AM
To: mso@xxxxxxxxxxxxx
Subject: [mso] Re: Access 2002: Date Filter Formula Calculation Help
Needed! :VSMail mx4



The plot thickens, Jim . . . !!  You're right, the blanks aren't blanks =
and
apparently the years aren't years . . . . when I plugged this into a new
field: YRConvert1: CStr(Format([year],"yyyy")),  ALL dates except null
converted to 1905.  Ouch, I was hoping I could find a way to filter out
projects that were closed more than 2 years ago, my tables are really
getting huge, but don't have any control over the table that stores
whatever data they're plugging in to the 'year' field.

I don't really know where to go from here . . . . any ideas?  Thank you =
so
much for hanging in there with this. :)
Cathy



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




Cathy--

Maybe the blank cells aren't really null? How about:

YRConvert:IIf(([year] Is Null) Or (Trim([year]) & "" =3D =
""),Now(),[year])

--Jim





-------------------------------------------------------------------------=
----------------------------
The information transmitted is intended only for the person
or entity to which it is addressed and may contain proprietary, =20
business-confidential and/or privileged material.
If you are not the intended recipient of this message you=20
are hereby notified that any use, review, retransmission,=20
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=20
material from any computer.  Any views expressed in this message
are those of the individual sender and may not necessarily reflect=20
the views of the company. =20
-------------------------------------------------------------------------=
------------------------------

*************************************************************
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=20
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
*************************************************************
*************************************************************
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:

  • » [mso] Re: Access 2002: Date Filter Formula Calculation Help Needed! :VSMail mx4