Setting up Excel and FileMaker Pro

Introduction

The Actual ODBC Drivers provide three core features for connecting an ODBC-ready application such as Microsoft Excel and FileMaker Pro to a database:

  • the setup utility that allows you to specify the connection name and the name or address of the server hosting the database
  • a login screen that authenticates you to the database
  • the driver itself, which communicates over the network with the database.

Two of the most popular ODBC-enabled applications on the Mac are Microsoft Excel and FileMaker Pro. The steps for connecting from these applications are described here.

 

Configuring a Data Source Name (DSN)

In order to connect to the database from an application such as Microsoft Excel, you must first create a DSN, which specifies the address of the server and the name of the database to which you will connect.

Note: In the following instructions, the "Administrator" refers to the application used to configure your DSN:

  • Users of OS X 10.4 "Tiger" or later should use the ODBC Administrator provided by Apple (see notes below).
  • Users of OS X 10.2 "Jaguar" or 10.3 "Panther" must use the OpenLink / iODBC Administrator

Here's what you do to configure a DSN:

  • From the Utilities folder in the Applications folder, launch the Administrator (again, users of 10.4 should use Apple's ODBC Administrator, while users of 10.3 or earlier should use the OpenLink ODBC Administrator).
  • When the Administrator window appears, press the Add button to create a new User DSN.
  • Select the driver required for your database from the list and press Finish.
  • Press the Continue button to advance to the Data Source panel.
  • Enter the name of the DSN (name it whatever you like - most people just use the name of the database).
  • Enter the IP address of your server. The Actual ODBC Driver remembers the 5 most recent server names you enter, so you may also select from the list if you have configured other connections.
  • Press the Continue button to advance to the Connection panel.
  • Click the "Connect to server" checkbox and enter your database login ID and password.
  • Press the Continue button to advance to the Database panel.
  • Select your database from the list or enter its name manually.
  • Press the Finish button to advance to the Conclusion panel.
  • To test your connection, press the Test button, and enter your user ID and password when prompted.
  • Press Done to save the new DSN.
  • Press OK to exit the ODBC Administrator application

You are now ready to connect to your database using your application.

 

Using Microsoft Excel

Microsoft Excel 2004 and 2008 include the Microsoft Query application in the default installation. MS Query is needed to construct the queries that will return data from your database to Excel.

If you are using Excel X, you will need to download and install MS Query X, which is not included in the default MS Office X installation. MS Query X is a free download available from the Microsoft website at www.microsoft.com/mac. You should search for "Query X", download the package, and run the installer.

When you are ready to import information into Excel from your database, perform the following steps:

  • Select Data -> Get External Data -> New Database Query... from the Excel menu.
  • When you see the iODBC Data Source Chooser dialog, select the data source you created in the previous steps and press the OK button.
  • At the login prompt, enter your database login ID and password and press OK.
  • MS Excel will automatically launch MS Query. Use MS Query to construct a SQL statement that will be used to return data to your Excel spreadsheet.

 

Using FileMaker Pro

You can use FileMaker Pro to create reports generated from database that has been imported into your FileMaker database. Advanced FileMaker users can also write FileMaker scripts which add or update data in your database.

In order to use the driver with FileMaker, you must first make sure that a file named "ODBC Driver Manager" does NOT exist in a folder named CFMSupport in the Library folder of your boot disk. If you do have this file, we suggest you temporarily move it to your Desktop or some other safe place while using the Actual ODBC driver. You will need to Quit and restart FileMaker to use the Actual ODBC driver.

Once the "ODBC Driver Manager" file has been removed from the CFMSupport folder, you can import data from database into FileMaker by performing the following steps:

  • In FileMaker Pro, select the following menu item: File -> Import Records -> ODBC Data Source...
  • Select the name of your data source (created in the above section) from the "Select ODBC Data Source" dialog and press Continue.
  • Enter your database login ID and password and press OK.
  • Use the "SQL Query Builder" dialog to construct a SQL statement that will be used to return data to your FileMaker database. When you are finished, press Execute.
  • Use the "Import Field Mapping" dialog to map fields in your query to fields returned by your FileMaker database. You can drag the fields listed for your FileMaker database to change the mapping to the corresponding query result fields. When you are finished, press Import.
  • When the "Import Options" dialog is displayed, press the Import button.

 

Notes:

  • Starting with OS X 10.2, Apple has included ODBC support in the operating system in the form of ODBC libraries and an ODBC Administrator application (found in the Utilities folder). The libraries themselves work fine. The administrator application, however, had a bug which keeps it from launching an ODBC driver's setup assistant (it instead allows you to enter each parameter one by one). Apple fixed this bug in OS X 10.4 "Tiger".
  • The default installation of the Actual ODBC Driver provides for an unlimited use evaluation license. Until a license key has been entered, the driver will only return the first 3 rows from each recordset. If you need an alternate evaluation arrangement, please contact us at orders@actualtechnologies.com.
  • Once you have purchased a license key (either from our website or through other arrangements), you must enter the key into the driver. You may do this by pressing the "Licenses..." button on the Introduction panel described of the DSN setup assistant. Copy the 20 digit license key from your e-mail receipt and paste into the License Key field and press OK.
  • We will be releasing periodic updates to the driver. These updates will consist of any required bug fixes, in addition to minor feature enhancements. You should check to see if updates are available by visiting our website. You can also press the Check for Updates button on the Introduction page described in the step above.