Courtman
Paranoid Android
- Local time
- Today, 07:34
- Joined
- Dec 8, 2001
- Messages
- 34
I am trying to run an IIf function as follows:
=IIf([MedicalDueDate]>Date(),IIf(([MedicalDueDate]-Date())<15,"P","P"),"O")
So this will check to see if the medical is valid. If it is valid, it will show a green P (in wingdings 2 shows a tick). If it is valid, but within 2wks of expiry it will show an orange P, and if the medical is expired it will show a red cross.
The above IIf string works fine for entering the characters, but can I also change the textboxes FORECOLOR property at the same time? I've tried using AND, but this doesn't work - just errors.
If anyone knows an easier way of achieving this I'd be grateful...
=IIf([MedicalDueDate]>Date(),IIf(([MedicalDueDate]-Date())<15,"P","P"),"O")
So this will check to see if the medical is valid. If it is valid, it will show a green P (in wingdings 2 shows a tick). If it is valid, but within 2wks of expiry it will show an orange P, and if the medical is expired it will show a red cross.
The above IIf string works fine for entering the characters, but can I also change the textboxes FORECOLOR property at the same time? I've tried using AND, but this doesn't work - just errors.
If anyone knows an easier way of achieving this I'd be grateful...