0

Is it possible in python by which I can write a simple .py script to update my access database records or insert new one if any i have on behalf of me? new records are to be pulled from Excel and pushed to be in the database.

MS-Access2010 i am using.

Thanks,

1 Answer 1

1

It's definitely possible. You'll probably want to do it with the comtypes module, which allows communication between Windows processes using the Component Object Model (COM).

Here's an example of a script that does that posted in another question.

Getting the information out of Microsoft Excel can be done with a lot of modules, but one I've had success with is openpyxl. Some examples of reading Excel workbooks with it can be found here.

Sign up to request clarification or add additional context in comments.

3 Comments

Shall i need to install using easy_install comtypes or it is in stdlib?
Neither of them are stdlib, you should install them using pip and a virtualenv if you prefer.
openpyxl i have installed already! now i need the one comptypes. but any documentation of that module you would like to share please?

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service and acknowledge you have read our privacy policy.

Start asking to get answers

Find the answer to your question by asking.

Ask question

Explore related questions

See similar questions with these tags.