T
tkosel
Two part question. First, I have the following code in a form. Testing it
in debug mode, this is what I get.
? format(datepart("yyyy", now()),"yy")
05
How come I am getting output of 05? Today is February 10, 2010. Shouldn't
I be getting 10?
Where this is leading to is below. (Second part of question, related
partially I think to problem outlined above.)
Me.JulianExpirationDate = Format(DateAdd("yyyy", 5, Now()), "dd/mm/yyyy")
? me.JulianExpirationDate
09/02/2015
Me.JulianExpirationDate = Format(Year(Me.JulianExpirationDate), "yy") &
Format_(Format(Me.JulianExpirationDate, "y"), "000")
? me.JulianExpirationDate
05245
I am expecting an output of 15041.
What am I doing wrong in both cases?
in debug mode, this is what I get.
? format(datepart("yyyy", now()),"yy")
05
How come I am getting output of 05? Today is February 10, 2010. Shouldn't
I be getting 10?
Where this is leading to is below. (Second part of question, related
partially I think to problem outlined above.)
Me.JulianExpirationDate = Format(DateAdd("yyyy", 5, Now()), "dd/mm/yyyy")
? me.JulianExpirationDate
09/02/2015
Me.JulianExpirationDate = Format(Year(Me.JulianExpirationDate), "yy") &
Format_(Format(Me.JulianExpirationDate, "y"), "000")
? me.JulianExpirationDate
05245
I am expecting an output of 15041.
What am I doing wrong in both cases?