Hi all,
I am using follwing sql statement to fetch date from sql server.
lcsql="select ......,{ d '1900-01-01' } as TEMP_DT..."
when I use following in my code,SOMETIMES, I get operator/operand mismatch error .
I changed if statement to :
ttod(TEMP_dt)=date(yyyy,mm,dd), but still I get the error.
Any suggestions?
Thanks you all in advance.
I am using follwing sql statement to fetch date from sql server.
lcsql="select ......,{ d '1900-01-01' } as TEMP_DT..."
when I use following in my code,SOMETIMES, I get operator/operand mismatch error .
Code:
select lcCursor
do while !eof()
if TEMP_dt=date(yyyy,mm,dd) && error appears here
endif
enddo
I changed if statement to :
ttod(TEMP_dt)=date(yyyy,mm,dd), but still I get the error.
Any suggestions?
Thanks you all in advance.