Change field format based on condition

G

Greg

On my report I am displaying field with control source:
=IIf([Status]="Closed",[Closed Date],[Last Update]) however I would like to
display
Closed in Short Date format and if condition is false [Last Update] should
be displayed in Short Time format.
How do I set this control source?

Thanks
 
S

Steve Schapel

Greg,

Try it like this:
=IIf([Status]="Closed",Format([Closed Date],"Short Date"),Format([Last
Update],"Short Time"))
 

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