Hi, guys I'm trying to execute this sql below: strsql="select Name,CName from Task where Name like '%" & request.QueryString("PrintName") & "%' and CName Like '%" & request.QueryString("PrintName") & "%' group by name" * Note that i want to group records only by name. but it doesn't work and i get this error: 'You tried to execute a query that does not include the specified expression 'CName' as part of an aggregate function.' Please can anyone helpme? Regards