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

• From: Cathy.Evans@xxxxxxxxx
• To: mso@xxxxxxxxxxxxx
• Date: Wed, 17 Aug 2005 15:59:42 -0400

Thanks James - how do I do that - convert it to numeric?  The field seems
to have a 4 digit year, and I saw a couple of instances where it was 2
digit as in 04.  The others appeared null, but we don't think so now based
on Jim's help.  Am trying to work it out, all ideas welcome, thanks.

"James LaBorde"

<jlaborde@xxxxxxxxx      To: <mso@xxxxxxxxxxxxx>

>

Sent by:                 cc:

mso-bounce@freelist

s.org                    Subject:  [mso] Re: Access 2002:
Date Filter Formula Calculation
08/17/2005 02:30 PM         Help    Needed!  :VSMail mx4

mso
.....

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

-----------------------------------------------------------------------------------------------------
The information transmitted is intended only for the person
or entity to which it is addressed and may contain proprietary,
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
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).
http://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