A family of Microsoft relational database management systems designed for ease of use.
Ok Fair enough!
Do keep in mind that you cannot install Office x32 and then install parts (ANY PART) OF office x64 on the SAME computer - not allowed.
But I do want you to lock this down to one particular code size. The default for Visual studio is both – you want to force the project to x32. Assuming this is the case and you not mixed up office?
Then try in code creating a instance of the database engine.
In fact, don't even use .net, but plane jane windows scripting:
Try using windows scripting. (both 32 and hten x64). Say this code:
'Set dbeng = CreateObject("DAO.DBEngine.36")
Set acc2007 = CreateObject("DAO.DBEngine.120")
strMdbFile = "C:\Documents and Settings\Albert\My Documents\Access\ScriptExample\MultiSelect.accdb"
Set db = dbeng.OpenDatabase(strMdbFile)
strQuery = "select * from contacts"
Set rs = db.OpenRecordset(strQuery)
rs.movefirst
If rs.EOF = true Then
quit
End If
Rs.movelast
Msgbox "records in table = " & rst.recordcount
So above is 100% windows scripting environment (vbs) you should be able to open/use the ACE data engine. In above, note if you error out when creating the "instance" of the data engine or when you attempt to open the database.
Launch x64 bit script from:
C:\Windows\System32\CScript.exe //Nologo //B X:\PathToYourScript\YourScript.vbs
Launch x32 script from:
C:\Windows\SysWOW64\CScript.exe
However, I would just attempt to create an instance of ACE in .net.
eg in vb.net use CreateObject("DAO.DBEngine.120")
Best regards
Albert D. Kallal (Access MVP)
Edmonton, Alberta Canada