rms-accessrodbc

How to connect R with Access database in 64-bit Window?


When I tried to connect R with Access database I get an error

odbcConnectAccess is only usable with 32-bit Windows

Does anyone has an idea how to solve this?

library(RODBC) 
mdbConnect<-odbcConnectAccess("D:/SampleDB1/sampleDB1.mdb")

Solution

  • Use odbcDriverConnect instead. If you have 64-bit R installed, you may have to use the 32-bit R build.

    odbcDriverConnect("Driver={Microsoft Access Driver (*.mdb, *.accdb)};DBQ=D:/SampleDB1/sampleDB1.mdb")