Sweet! This one worked - the ORDER BY (count)zipcode threw an error,(may be Access).
Thanks much! Jim CR> <cfquery name="getZip" datasource="#request.maindsn#"> CR> SELECT DISTINCT zipcode, count(zipcode) as zipnum CR> FROM tblSurvey CR> WHERE state = '#URL.state#' CR> GROUP BY zipcode CR> ORDER BY 2, zipcode CR> </cfquery> ______________________________________________________________________ Dedicated Windows 2000 Server PIII 800 / 256 MB RAM / 40 GB HD / 20 GB MO/XFER Instant Activation · $99/Month · Free Setup http://www.pennyhost.com/redirect.cfm?adcode=coldfusiona FAQ: http://www.thenetprofits.co.uk/coldfusion/faq Archives: http://www.mail-archive.com/cf-talk@houseoffusion.com/ Unsubscribe: http://www.houseoffusion.com/index.cfm?sidebar=lists