>lcSetDate=Set([date]) >lcSetMark=Set([mark]) >SET DATE TO YMD >SET MARK TO "-" > >lcSQL=[SELECT Numero FROM News WHERE Year={d '] + Alltrim(Dtoc(vuData)) + ['}] > >Set Date To (lcSetDate) >Set Mark To (lcSetMark) >Thanks, but as you might have seen in another reply I this this morning, I created a function DateUniversal() which I call when I need that special syntax. This avoids me to change the SETtings which is something that I am avoiding when working in a Web framework.