T
tom mcnally
'Splain this to me (in AccessXP):
1. Year(Now())=2003 (sometimes I get an object type error
message when trying to assign this result to an integer
or long or variant variable, so have tried following)
2. CStr(Year(Now()))='2003' (usually works but depends
upon the
3. Format(Year(Now()),"yyyy")=1903 (!)
4. Format(Year(Now()),"####")=2003
#3 happens on virtually every XP Prof/XP Office PC I work
on, which are all configured pretty much the same, SP1
applied and all the latest service packs.
1. Year(Now())=2003 (sometimes I get an object type error
message when trying to assign this result to an integer
or long or variant variable, so have tried following)
2. CStr(Year(Now()))='2003' (usually works but depends
upon the
3. Format(Year(Now()),"yyyy")=1903 (!)
4. Format(Year(Now()),"####")=2003
#3 happens on virtually every XP Prof/XP Office PC I work
on, which are all configured pretty much the same, SP1
applied and all the latest service packs.