Hello, back again with another IIF nightmare, logically I can't see anything wrong with this IIF, can some one tell me why it is erroring.
error......
Well i've done that by creating 2 expressions dte1 & dte2
so the iif is the expression for the dte1 & dte2 like so
etc.. and the between is simply
but for some reason it keeps asking for input for dte1 & dte2 , so assinging the iff to a variable as the message suggests does not work.
If I remove the between criterian and display the dte1 & dte2 expressions they are the data expected, either the date you enter or the default made by the iif, this is driving me mad, can someone please help restore my hairline![[hairpull] [hairpull] [hairpull]](/data/assets/smilies/hairpull.gif)
"In complete darkness we are all the same, only our knowledge and wisdom separates us, don't let your eyes deceive you.
Code:
Between IIf([Please enter visit start date - leave blank for all] Is Null,"10/01/1971",[Please enter visit start date - leave blank for all]) And IIf([Please enter visit end date - leave blank for all] Is Null,left(now(),10),[Please enter visit end date - leave blank for all])
error......
the expression is typed incorrectly,or is too complex to be evaluated......try simplifying the expression or assigning parts of the expression to variables
Well i've done that by creating 2 expressions dte1 & dte2
so the iif is the expression for the dte1 & dte2 like so
Code:
dte1 : IIf([Please enter visit start date - leave blank for all] Is Null,"10/01/1971",[Please enter visit start date - leave blank for all])
Code:
Between [dte1] and [dte2]
but for some reason it keeps asking for input for dte1 & dte2 , so assinging the iff to a variable as the message suggests does not work.
If I remove the between criterian and display the dte1 & dte2 expressions they are the data expected, either the date you enter or the default made by the iif, this is driving me mad, can someone please help restore my hairline
![[hairpull] [hairpull] [hairpull]](/data/assets/smilies/hairpull.gif)
"In complete darkness we are all the same, only our knowledge and wisdom separates us, don't let your eyes deceive you.