1

I'm working with Python and interacting with a MS Access database via the JayDeBeApi library. Everything works well, I can create tables and all but the file *.accdb need to be created previously in the MS Access software

Is there a way to dynamically create the *.accdb file via my Python code?

1
  • Commonly, the rather crude approach to include an empty database with the project and to just copy it to create a new one is used. That also allows you to put things in there and use it as a template Commented Nov 15, 2022 at 17:02

1 Answer 1

5

You can use the msaccessdb package to create the .accdb file.

(I am the maintainer of that package.)

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

1 Comment

Or: If you need an Access file, don't create it, just write it.

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.