J
Junior
What's wrong with this switch statement? - i'm trying to use it in a select
query.
Currently it sets XcodeDte to [BegDate] whether datediff is <0 or >0. i've
also tried using iif statments but get the same results.
XCodeDte:
Switch(DateDiff("d",[PDueDte],[BegDate]<1),[BegDate],DateDiff("d",[PDueDte],
[BegDate]>1),[BegDate]-10)
query.
Currently it sets XcodeDte to [BegDate] whether datediff is <0 or >0. i've
also tried using iif statments but get the same results.
XCodeDte:
Switch(DateDiff("d",[PDueDte],[BegDate]<1),[BegDate],DateDiff("d",[PDueDte],
[BegDate]>1),[BegDate]-10)