The actual query is the following (Sorry but I could not keep the tabulations...):
this.RowSource= 'SELECT a.f_fchvence,a.f_hora,LEFT(MLINE(a.f_descrip,1),50),LEFT(MLINE(b.f_nombre,1),45),b.f_represen, '+ ;
'b.f_cliente,LTRIM(STR(IIF(date()-a.f_fchvence>0,date()-a.f_fchvence,0))),a.f_proyecto,a.f_reg FROM actividades '+ ;
'AS a INNER JOIN proyectos AS b ON a.f_proyecto=b.f_proyecto INTO CURSOR curpendientes ORDER BY 1,2'+ ;
'HAVING a.f_estatus=1 and a.f_usuario=glbusuario and (a.f_clase=mClase or IIF(mClase=4,.T.,.F.))'
Thanks in Advanced or Hope This Helps