title: How do I query a property on a record source for a Access 2002 report in code?
body: <p>In the 'code behind' of the report is there anything I can do in code to query a property of the record source. </p>
  
  <p>Sorry I'm new to access and VB, but I am wanting to achieve something along the lines of this</p>
  
  <pre><code>If Me.RecordSource["MYFieldName"] = "dan" Then
     //do something
  End If
  </code></pre>
  
  <p>Is this possible?</p>