Date in conditional formatting

G

Guest

I'm trying to get a date to be red/green to indicate whether or not a
proposal is still valid.
Condition 1 Expression Is :-

IIf(Nz([PropSubDate])="","No
Date",(DateAdd("d",[ValidDays],[PropSubDate])))<Date()

Condition 2 Expression Is :-

IIf(Nz([PropSubDate])="","No
Date",(DateAdd("d",[ValidDays],[PropSubDate])))>=Date()

It doesn't seem to like Date() and tells me "The function you entered can't
be used in this expression".

I came up with this expression on my work pc today and it worked; I emailed
it home to tinker with it (you can't do enough for a good company) and I get
the above error.

Both systems are Access 2000 on XP Pro (work) & XP Home (home).

I'm obviously doing something very daft - can anyone help me.

Thanks in advance.


Andy
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Top