New to R and have having troubles connecting to Access databases. This is the code I am running (RODBC package loaded manually before running):
library(RDOBC)
conn <- odbcDriverConnect("Driver={Microsoft Access Driver (*.mdb, *.accdb)};DBQ='C:/db/dbNorthwind.accdb'")
subset(sqlTables(conn), TABLE_TYPE == "TABLE")
df <- sqlFetch(conn, "tblCustomer")
df #
I get the error-message:
Error in sqlTables(conn) : first argument is not an open RODBC channel.
Know any tips on how to fix?
environment:
- 64-bit Windows
- 32-bit MS Access 2013
- 64-bit Microsoft R Open