title: Access DoCmd.OpenForm
body: <p>I developed a project for warehouse. The application user interface is on MS access and database on MS Sql Server 2008.
  The problem is that when below statement is executed it generate error.</p>
  
  <pre><code>“DoCmd.OpenForm  stDocName, ,  , stLinkCriteria”
  </code></pre>
  
  <p>The error is that:</p>
  
  <blockquote>
    <p>Connection failed:
    SQLState: '01000'
    SQL Server Error: 53
    [Microsoft][ODBC SQL Server Driver][DBNETLIB]ConnectionOpen
    (Connect()).
    Connection failed:
    SQLState: '08001'
    SQL Server Error:17
    [Microsoft][ODBC SQL Server Driver][DBNETLIB]SQL Server does not
    exist or access denied.</p>
  </blockquote>