cquerystring='' >cquerystring='select * from mycursor where .t.'&&get all lines >cdated=transform(thisform.txtdate())&&it's OK >cdone='ttod(mycursor.createtime)'&&&&&&&&&&Here the problem >cdt='>' >cquerystring=cquerystring+' and '+cdone+cdt+cdated >messagebox(cquerystring)&&show the query syntax for debug >&cquerystring