
Originally Posted by
ranman256
Date math is done using
DateAdd("d",6,[datefield])
I tried this, but a message appears saying: "this expression is typed incorrectly, or is too complex to be evaluated. For example a numeric expression may contain too many complicated elements. Try simplifying the expression by assigning parts of the expression to variables"
Code:
Between Now() And DateAdd("ww",[forms]![frmExpiring]![lstWeeks],Now())
I tested the between formula in a more simple way and it works the way it is below, I just need to change the 20 for the listbox value, I tried it with "[forms]![frmExpiring]![lstWeeks]" but there's no success...
Code:
Between Now() And DateAdd("ww",20,Now())