title: Change Application Title in .accde on startup
body: <p>I have an Access Front-End in which I want to auto-detect whether it is compiled into an accde, and then rename the apptitle.</p>
  <pre class="lang-vb prettyprint-override"><code>If CurrentDb.Name Like &quot;*.accde&quot; Then
      CurrentDb.Properties(&quot;AppTitle&quot;).value = &quot;Release Client&quot;
      Application.RefreshTitleBar
  Else
      CurrentDb.Properties(&quot;AppTitle&quot;).value = &quot;Test Client&quot;
      Application.RefreshTitleBar
  End If
  </code></pre>
  <p>When I launch my .accdb in which I develop/test, everything works. I can change the apptitle manually, close and reopen, and it renames to Test Client. However, once I compile it, upon launching the newly compiled .accde, it does not rename the apptitle.</p>
  <p>I tried moving the code from the AutoExec function to the first form's OnOpen event and even to the first form's OnTimer event (with a setting of 1).</p>
  <p>If I run the code manually through the Immediate window, it resolves appropriately, so the code seems correct.</p>
  <p>I think I'm missing the link between running this code in an .accdb and running it in an .accde.</p>