Easysoft Data Access

How do I connect Microsoft Access to an ODBC Database?

Article:
01094
Last Reviewed:
1st May 2015
Revision:
1

Use an Easysoft ODBC Driver to connect Microsoft Access to an ODBC Database, enabling you to retrieve and update data stored in data stores such as MongoDB and Salesforce.com from a Microsoft Access front end.

Microsoft Access uses an ODBC driver to interact with an external data source. ODBC is a data access technology, the Microsoft implementation of which is included with Windows.

To create this article, we tested Microsoft Access 2003, Microsoft Access 2007, Microsoft Access 2010 and Microsoft Access 2013 with Easysoft's ODBC drivers.

Example: How to connect Microsoft Access to Salesforce.com

The components necessary to connect Microsoft Access to Salesforce.com are:

Microsoft Access <-> Salesforce.com ODBC Driver <-> Salesforce.com

Example: How to connect Microsoft Access to MongoDB

The components necessary to connect Microsoft Access to MongoDB are:

Microsoft Access <-> MongoDB ODBC Driver <-> MongoDB

The Salesforce.com ODBC Driver and MongoDB ODBC driver are available to download from the Easysoft web site.

Installing, Licensing and Testing the Easysoft ODBC Driver

  1. Download the Windows Salesforce.com ODBC Driver or Windows MongoDB ODBC Driver as required. (Registration required.)
  2. Install and license the Easysoft ODBC Driver on a Windows machine.

    For installation instructions, see the Salesforce.com ODBC Driver documentation or MongoDB ODBC Driver documentation.

Before you can use the Easysoft ODBC Driver to connect Microsoft Access to Salesforce.com or MongoDB, you need to configure a System ODBC data source. An ODBC data source stores the connection details for the target database (e.g. Salesforce.com) and the ODBC driver that is required to connect to it (e.g. the Salesforce.com ODBC driver).

To run ODBC Administrator on 32-bit Windows, open Administrative Tools in Control Panel, and then open Data Sources (ODBC). (On older versions of Windows, the Control Panel applet that launches ODBC Administrator is labelled Data Sources.)

To run ODBC Administrator on 64-bit Windows, in the Windows Run dialog box, type this command if you are using a 64-bit version of Microsoft Access:

%windir%\system32\odbcad32.exe

–Or–

Type this command if you are using a 32-bit version of Microsoft Access:

%windir%\syswow64\odbcad32.exe

If you are not sure whether your version of Windows is 32-bit or 64-bit, follow the instructions for running ODBC Administrator on 64-bit Windows. If you get an error, follow the instructions for 32-bit Windows instead.

If you are not sure whether your version of Microsoft Access is 32-bit or 64-bit, start Microsoft Access and then look for the Access process in Task Manager. If the process name is MSACCESS.EXE *32, Microsoft Access is 32-bit. If the process name is MSACCESS.EXE, Microsoft Access is 64-bit.

Use ODBC Administrator to create your ODBC Driver data source.

Creating a Salesforce.com ODBC Data Source

  1. Choose the System DSN tab, and then choose Add.
  2. In the Create New Data Source dialog box, choose Easysoft ODBC-Salesforce Driver, and then choose Finish.
  3. Complete the Easysoft ODBC-Salesforce Driver DSN Setup dialog box:
    SettingValue
    DSNSalesforce.com
    User NameThe name of your Salesforce.com user. For example, myuser@mydomain.com.
    PasswordThe password for your Salesforce.com user.
    TokenThe security token for your Salesforce.com user, if required.

    To find out whether you need to supply a security token, choose the Test button. If the connection attempt fails with an error which contains LOGIN_MUST_USE_SECURITY_TOKEN, you need to supply one.

    Salesforce.com emails the security token to the email address associated with your Salesforce.com user account. If you have not received a security token, you can regenerate it. Salesforce.com will then email the new security token to you. To regenerate your security token, log in to Salesforce.com and then choose Setup from the user menu. Search for "security token" in the Quick Find box. Click Reset Security Token in the Reset Security Token page. When you receive the token in your email client, copy it and then paste it into the Token field.

  4. Use the Test button to verify that you can successfully connect to Salesforce.com.

Creating a MongoDB ODBC Data Source

  1. Choose the System DSN tab, and then choose Add.
  2. In the Create New Data Source dialog box, choose Easysoft ODBC-MongoDB Driver, and then choose Finish.
  3. Complete these fields Easysoft ODBC-MongoDB Driver DSN Setup dialog box:
    SettingValue
    DSNMongoDB
    DescriptionEasysoft MongoDB ODBC Driver
    ServerThe name or IP address of the host where your MongoDB instance is running.
    User NameIf you need to supply a user name to access your MongoDB database, enter it here.
    PasswordThe password for your MongoDB user name.
  4. Use the Test button to verify that you can successfully connect to your MongoDB database.

Connecting Microsoft Access to your ODBC Database

You can now connect Microsoft Access to Salesforce.com or MongoDB:

  1. Open your Microsoft Access database.
  2. Do one of the following:
    • For Microsoft Access 2003 and earlier, on the File Menu, choose Get External Data > Link Tables.

      The Link dialog box is displayed.

    • For Microsoft Access 2007, on the External Data tab, choose More > ODBC Database.

      The Get External Data wizard starts.

    • For Microsoft Access 2010 and later, on the External Data tab, choose ODBC Database.

      The Get External Data wizard starts.

  3. Do one of the following:
    • For Microsoft Access 2003 and earlier, choose ODBC Databases from the Files of type list.
    • For Microsoft Access 2007 and later, choose Link to the data source by creating a linked table, and then choose OK.

    The Select Data Source dialog box is displayed.

  4. Choose your ODBC data source from the Machine Data Source list, and then choose OK.

    The Link Tables dialog box is displayed.

  5. Choose the table that you want to link and then choose OK.
  6. Choose the linked table in Microsoft Access, and then choose RETURN to work with the linked data.
Applies To

Knowledge Base Feedback

* Did this content help you?
* Please select one option based on your first choice:

(* Required Fields)