title: Runtime error '2105' "You can't go to the specified record"
body: <p>I have a button on a form whose purpose is to add a new record to the underlying
  table.</p>
  
  <p>The OnClick Event code for the button looks like</p>
  
  <pre><code>  me.dirty = false
  
    if me.NewRecord then
       msgBox("new record")
    else
       msgBox("not new record")
    end if
  
    doCmd.goToRecord record := acNewRecord
  </code></pre>
  
  <p>The message box is needed to make sure that I am not already operating on a new record.</p>
  
  <p>When I click the button, I get a Runtime error 2105 "You can't go to the specified record"</p>
  
  <p>Does someone know why this is?</p>
  
  <p>Rene</p>