Rebecca
Tue Sep 02 12:32:43 CDT 2003
Okay, well, I haven't tried this, but what about using the - operator, which
returns a DateTime, and then formatting it for months, years, or whatever?
--
Rebecca Riordan, MVP
Designing Relational Database Systems
Microsoft SQL Server 2000 Programming Step by Step
Microsoft ADO.NET Step by Step
http://www.microsoft.com/mspress
Blessed are they who can laugh at themselves,
for they shall never cease to be amused...
"Don" <unknown@oblivion.com> wrote in message
news:b145b.889345$3C2.20500917@news3.calgary.shaw.ca...
> > > Is there any way to do what I want without using DateDiff, though? I
> need
> > > to get the difference in days, weeks, months, and years between the
date
> > > in a field and a fixed date as part of the filter.
> >
> > Probably, but I'm having (yet another) stupid day. Can you explain what
> you
> > want to do in words of two-syllables or less? <g>
>
> I will give an example of what I need to do:
>
> "DateDiff('m', [DateField], #Sep 2, 2003#) > [MonthSkipCountField]"
>
> I need to count the number of days/weeks/months/years between a date in a
> record and a reference date I get elsewhere. Then I take this value and
> compare it with a value stored in a different field in the same record. I
> don't really know how else to explain it.
>
> - Don
>
>