josh managed to find the solution in this post: http://www.houseoffusion.com/groups/cf-talk/thread.cfm/threadid:56796
it was down to some cells in that column being null when using the like clause - i had to include where T_Site is not null and now it is working fine > >You aren't by chance storing a comma-delimited list in a single > column a > >database are you? :) > > hi brad, well not in the database but this particular column in the > coldfusion query at this point could have comma delimited lists. > > this query is something i have created out of various other queries > and formats and then i am just about to use the query2excel function > but am trying to run some filters on it first to get rid of some of > the data > > would a comma delimited list in a coldfusion query object cause this > error? and if so how can i get around it > > thanks > > > >~Brad > > > >I don't think you can have them.. Perhaps you can escape them? /,? > > > > > >> hi, i need the commas in the like clause though, how can i get > these > >in there? > >> > >> thanks > >> > >> ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~| Adobe® ColdFusion® 8 software 8 is the most important and dramatic release to date Get the Free Trial http://ad.doubleclick.net/clk;203748912;27390454;j Archive: http://www.houseoffusion.com/groups/CF-Talk/message.cfm/messageid:307882 Subscription: http://www.houseoffusion.com/groups/CF-Talk/subscribe.cfm Unsubscribe: http://www.houseoffusion.com/cf_lists/unsubscribe.cfm?user=89.70.4