YEAR() returns numeric. Try:
if left(ALLT(STR(year(date()))),2) = 20HTH!
Mark
>Hello:
>
>I'm having a little trouble with this code. I want to pick up if the
>century.
>
>Can I use left() function here? What I have isn't working.
>
>if left((year(date())),2) = 20
> set century to 20
>else
> set century to 19
>endif
>
>Any input would be appreciated. Thanks.
"It hit an iceberg and it sank. Get over it."
Robert Ballard, dicoverer of the Titanic wreckage.