title: "[ODBC Microsoft Access Driver] Not a valid file name"
body: <p>I am new to Python and Pyodbc. I try to connect an access database with below code but keep getting &quot;[ODBC Microsoft Access Driver] Not a valid file name&quot; error.</p>
  <p>I tried to install Access Database Engine and using two backslashes instead of one in the database directory.</p>
  <p>When I look at the ODBC data sources Microsoft Access Driver (*.mdb, *.accdb) seems to be installed. I tried It on another system with no luck.</p>
  <pre><code>import pyodbc
  
  conn_str = (
      r'DRIVER={Microsoft Access Driver (*.mdb, *.accdb)};'
      r'DBQ=&quot;C:\Users\PC\Desktop\testdatabase.accdb&quot;;'
      )
  cnxn = pyodbc.connect(conn_str)
  crsr = cnxn.cursor()
  for physical_properties in crsr.tables(tableType='TABLE'):
      print(physical_properties.table_name)
  
  </code></pre>
  <p>Any help would be much appreciated. Thanks in advance.</p>