Gustav Brock
Gustav at cactus.dk
Tue Feb 6 06:23:41 CST 2007
Hi Virginia
I would use DateDiff:
If DateDiff("m", Date, [DateNextSAI]) <= 0 Then
or:
If DateDiff("m", Date, Nz([DateNextSAI], Date)) <= 0 Then
or:
If Nz(DateDiff("m", Date, [DateNextSAI]), 0) <= 0 Then
/gustav
>>> hollisvj at pgdp.usec.com 05-02-2007 20:58:45 >>>
I know you guys are probably getting tired of hearing from me lately. It
has been several years since I have done this & my mind leaks......
On a report I need to show the date of the next inspection in red & bold
(got that part). My problem is that they only care about the month &
year due, not the day. How do I get it to pick out the month & year from
today's date?
So if the report is run for February and the next inspection date is
2/10/2007, it would show in bold & red on the report. If the next
inspection date is 11/3/2007. It would be regular font.
If Format$([DateNextSAI], "mmm yyyy", 0, 0) = Date Then