<div dir="ltr">Hello Friends,<div><br></div><div>I am in process of writing python automation code through which I can read the MDB file which contains several tables which need to convert them in multiple CSV file or xlsx file.</div><div><br></div><div><div>## package required </div><div>import pandas as pd</div><div>import numpy as np</div><div>import os</div><div>import glob</div><div>from functools import reduce</div></div><div><br></div><div><br></div><div><div># to know how many csv file and name csv file in current floder</div><div>os.chdir('C:\\Users\\anvinoth\\Desktop\\BODOPD\\DXA_C2') # code to change working directory</div><div>extension = 'mdb'</div><div>result = [i for i in glob.glob('*.{}'.format(extension))]</div><div>print(result)</div></div><div><br></div><div><pre>['FB4-DXA-C2-BSL.mdb']</pre><pre><br></pre><pre><br></pre><pre>import pandas_access as mdb
# Listing the tables.
for tbl in mdb.list_tables('FB4-DXA-C2-BSL.mdb'):
print(tbl)
</pre></div><div><br></div><div><div># Read a small table.</div><div>df =mdb.read_table('FB4-DXA-C2-BSL.mdb', "Patient")</div></div><div><br></div><div>i am getting this error</div><div><pre>WinError 2] The system cannot find the file specified</pre></div><div><br></div><div>I am searching in google but I did not find a relevant answer</div><div><br></div><div><font color="#3d85c6" size="4">could anyone in the group help me out with correct code to convert the MDB file into CSV file?</font></div><div> </div><div>thanks</div><div>vinoth<br><div><br></div><div><br></div></div></div>