Start by checking your message box: what does it say?
If that isn't helpful, use the debugger to check the InnerException property whiuch may have more info.
If that isn't helpful wither, check you have the right redistributable engine components installed:
Download Microsoft Access Database Engine 2016 Redistributable from Official Microsoft Download Center[
^]
There are different versions for 32- and 64- bit apps: you will need to install and distribute the appropriate version for your app configuration, if you want it to work.