title: Is Nothing comparison gives type mismatch
body: <p>I am trying to check if the 'Listivew.Tag property is nothing'. </p>
  
  <p>I used to do the 'Is Nothing' check universally for all scenarios as first check to avoid errors</p>
  
  <p>Can someone explain how to do it in VB 6?</p>
  
  <pre><code> If Not .lvwLocation.Tag Is Nothing Then
      'COMPANY
      str = str &amp; IIf(Len(.lvwLocation.Tag) &gt; 0, " and u.location_id in " &amp; .lvwLocation.Tag, "")
  End If
  </code></pre>
  
  <p>Gives error 'type-mismatch'</p>