'Access database error in R (RODBC connection)

I'm trying to get data from an Access database by using the RODBC package, but I get this error:

Error in sqlTables(c) : first argument is not an open RODBC channel
Además: Warning messages:
1: In odbcDriverConnect(con, ...) :
  [RODBC] ERROR: state IM002, code 0, message [Microsoft][Administrador de controladores ODBC] No se encuentra el nombre del origen de datos y no se especificó ningún controlador predeterminado
2: In odbcDriverConnect(con, ...) :
 Error in sqlTables(c) : first argument is not an open RODBC channel


Sources

This article follows the attribution requirements of Stack Overflow and is licensed under CC BY-SA 3.0.

Source: Stack Overflow

Solution Source