my dateAdd function is not working properly-when I add one to 9/30/03 I get 31 instead of 1(for october)
my code is (in a control source of a textbox) :
=IIf(Month([txt1])<>Month(DateAdd("d",1,[txt1])),Null,Day(DateAdd("d",1,[txt1])))
any ideas?
my code is (in a control source of a textbox) :
=IIf(Month([txt1])<>Month(DateAdd("d",1,[txt1])),Null,Day(DateAdd("d",1,[txt1])))
any ideas?