Thanks for this. I thought of breaking it up into its component parts in the table and and building it at runtime but given that it is only one or two variables, the Replace() part looks simpler and easier to handle. Its great that I have sorted this out as it gives me much more flexibility with...