Hello everyone,
Not sure if people are aware you can do this, but it helps me a whole lot.
If you have a Numeric field YYYYMMDD or 20030101 then rather than using :
date(left(totext(20030101,0),2),mid(totext(20030101,0),5,2),right(totext(20030101,0),2))
Use :
Date(ToText(20030101,"####,##,##")
Works a treat! Reebo
Scotland (Going mad in the mist!)
Not sure if people are aware you can do this, but it helps me a whole lot.
If you have a Numeric field YYYYMMDD or 20030101 then rather than using :
date(left(totext(20030101,0),2),mid(totext(20030101,0),5,2),right(totext(20030101,0),2))
Use :
Date(ToText(20030101,"####,##,##")
Works a treat! Reebo
Scotland (Going mad in the mist!)