title: AutoExec 2001 Error
body: <p>My access database crashed yesterday and I am trying to load it today to find an AutoExec 2001 error.</p>
  
  <p>The application still works its but popping up the error message without any option to check the debug.</p>
  
  <p>I have updated the trusted location as I read that could be a possibility.</p>
  
  <p>The error happens around here: </p>
  
  <pre><code> If DLookup("[Last_Opened]", "[tbl_logger]", "[Last_opened] = date()") Then
      DoCmd.Close acForm, "frm_Splash"
      DoCmd.OpenForm "frm_Manager_Stats_NEW_menu", acNormal
   Else
  </code></pre>
  
  <p>The form opens, then the error shows, I have also tried a compact and repair - Help </p>