title: vbscript: test for existence of a column in a recordset
body: <p>Bah, vbscript. </p>
  
  <p>I'm trying to figure out how to get this statement to work: </p>
  
  <pre><code>if (not rsObject("columnNameThatDoesntExist") is nothing) then 
  ' do some stuff
  end if
  ' else do nothin
  </code></pre>
  
  <p>Where rsObject is a RecordSet and columnNameThatDoesntExist is ... well you know. I'm looking for something like rsObject.Columns.Contains(string). But of course can't find it. </p>
  
  <p>Edit: Looks like looping rsObject.Fields is an option, is that the only way to do this? </p>