you really should alias those columns to something else. both 'Month' and 'Year' are built in functions in CF and as such, are reserved words.
On 1/17/07, coldfusion. developer @ att. net coldfusion. developer @ att. net <[EMAIL PROTECTED]> wrote: > Your comments gave me the answer I was looking for! Thank you so much! > > It just needed to be changed to ... > > SELECT DISTINCT MONTH(recw_assign_month) AS month, YEAR(recw_assign_month) AS > year > FROM dbo.tbl_recipe_monthly_winner > WHERE (recw_assign_month <> '') -- Charlie Griefer ================================================ "...All the world shall be your enemy, Prince with a Thousand Enemies, and whenever they catch you, they will kill you. But first they must catch you, digger, listener, runner, prince with a swift warning. Be cunning and full of tricks and your people shall never be destroyed." ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~| Upgrade to Adobe ColdFusion MX7 Experience Flex 2 & MX7 integration & create powerful cross-platform RIAs http:http://ad.doubleclick.net/clk;56760587;14748456;a?http://www.adobe.com/products/coldfusion/flex2/?sdid=LVNU Archive: http://www.houseoffusion.com/groups/CF-Talk/message.cfm/messageid:266767 Subscription: http://www.houseoffusion.com/groups/CF-Talk/subscribe.cfm Unsubscribe: http://www.houseoffusion.com/cf_lists/unsubscribe.cfm?user=89.70.4

