By “VBA SQL construction” do you mean a string composition? Then the Variant variable is requested as a string and returns an empty string.
The same with Debug.Print: what you see is a string.
To be precise, the unassigned variant variable is empty. And Empty generates the behavior described above.
The same with Debug.Print: what you see is a string.
To be precise, the unassigned variant variable is empty. And Empty generates the behavior described above.
The value Empty denotes a Variant variable that hasn't been initialized (assigned an initial value). A Variant containing Empty is 0 if it is used in a numeric context, and a zero-length string ("") if it is used in a string context.