Joseph is correct, June, a Variant variable initialises to Empty - what you see is as a result of datatype coercion.
However, the point is that the function StringFormatSQL() handles NULL's passed as a parameter and correctly converts to the the word 'NULL' in the resulting output SQL string...