I can't seem to get my Visual Studio 2015 to connect to Access 2016, both are 64 bit. I have looked at many forums and most people say to install the MS Access 2010 engine (x64).
I followed the example given here- https://msdn.microsoft.com/en-us/library/ms171893.aspx
When I tried to set up a new data connection through the data connection wizard, your supposed to be able to find using the "Data source" selection dropbox of:
.NET Framework Data Provider for OLE DB
And find in the next dropbox of the OLE DB Provider
Microsoft Office 12.0 Access Database Engine OLE DB
However I do not see this option. I have tried to use some of the other OLE providers in that list and have been able to connect with 1 or 2 of them but then I get an error saying that the tables are invalid objects. I am lost as to what else to try to be able to connect to any Access db.
Any help is appreciated.
答案 0 :(得分:1)
如果其他人有这个问题..
正如其他帖子所提到的,您需要Access数据库引擎。只使用任何版本的MS Access是不够的(这对我来说很奇怪)。我在这个主题上看到的所有其他帖子都没有指定你需要的WHICH版本(x86 vs x64)。我使用的是 Office x64 。
无论其
我必须使用的Access数据库引擎是 x86版本(我使用的是Access 2010数据库引擎)。我认为这与Visual Studio(2015)是x86应用程序有关,但我不确定。
这解决了我的问题。