title: VBA With Microsoft Access - Check if object exists
body: <p>I'm using VBA with Microsoft Access.</p>
  
  <p>I'm setting an object to an item inside a WebBrowserControl that sometimes exists, sometimes doesn't.</p>
  
  <pre><code>Dim myWebBrowser As Object
  Dim myItemInsideWebpage As Object
  
  Set myWebBrowser = Me.WebBrowser0.Object
  Set myItemInsideWebpage = myWebBrowser.Document.GetElemendById("myDiv")
  </code></pre>
  
  <p>If 'myDiv' exists, awesome, if not I want Access to let me know so I can deal with it.</p>