Add ' character to where clause

Code = {tag}

The SQL engine will recognise it as a string.

Please see Wiki - how to post code on this forum.