Hi Joshua, you could also use a simple (perhaps faster cfif-statement like this:
onClick='alert("<cfif qryquicklinks GTE 8>Sorry, you suck<cfelse>You Deleted Me</cfif>")'; Does this help? Patric JT> Please help me with this or can you guys and gals tell me a better way to JT> code this. Of course the phrases will be changed but this will give you the JT> basic concept. JT> Josh JT> #iif((qryquicklinks.recordcount gte 8), DE("onClick='alert("Sorry, you JT> suck")';"), DE("onClick='alert("You Deleted Me")';"))# JT> ______________________________________________________________________ Get the mailserver that powers this list at http://www.coolfusion.com 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