I am totally embarassed. I've been working with CF for nearly 9 years! I should have spotted this! The NullPointer was for the True and False which were being taken as variables that had not been set.
In my pathetic defence, I copied the function from the LiveDocs website, though......verbatim! Thanks Cutter. >I could be wrong, but I thought all argument attribute values had to be >quoted?... > >Cutter > >[EMAIL PROTECTED] [EMAIL PROTECTED] wrote: > >> ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~| Message: http://www.houseoffusion.com/lists.cfm/link=i:4:233156 Archives: http://www.houseoffusion.com/cf_lists/threads.cfm/4 Subscription: http://www.houseoffusion.com/lists.cfm/link=s:4 Unsubscribe: http://www.houseoffusion.com/cf_lists/unsubscribe.cfm?user=89.70.4 Donations & Support: http://www.houseoffusion.com/tiny.cfm/54