I tried this Between (Date()+7) And Date()
but was wondering how do I write this in an IIF statement.
I want to get a text field going for example:
IIF Between (Date()+7) And Date() THEN "Certification Alert"
Can you assist?
I tried this Between (Date()+7) And Date()
but was wondering how do I write this in an IIF statement.
I want to get a text field going for example:
IIF Between (Date()+7) And Date() THEN "Certification Alert"
Can you assist?
IIf is a function used in expressions. If Then is conditional code structure used in VBA and macros.
Where do you want this? In a query:
SELECT *, IIf([fieldname] Between Date() And Date() + 7, "Certification Alert", Null) AS Status FROM tablename;
How to attach file: http://www.accessforums.net/showthread.php?t=70301 To provide db: copy, remove confidential data, run compact & repair, zip w/Windows Compression.