User manual
Table Of Contents
- Preface Learning how to use FileMakerPro
- Chapter 1 FileMaker Pro basics
- Chapter 2 Adding and viewing data
- Chapter 3 Finding and sorting information
- Finding records
- Finding text and characters
- Finding exact matches in text fields
- Finding numbers, dates, and times
- Finding ranges of information
- Finding data in related fields
- Finding records that match multiple criteria
- Finding empty or non-empty fields
- Finding duplicates
- Finding all records except those matching criteria
- Hiding records from a found set and viewing hidden records
- Viewing, repeating, or changing the last find
- Sorting records
- Finding records
- Chapter 4 Previewing and printing information
- Chapter 5 Creating a database
- Chapter 6 Creating and managing layouts and reports
- Chapter 7 Customizing layouts
- Chapter 8 Working with related files
- Chapter 9 Protecting databases with passwords and groups
- Chapter 10 Creating scripts to automate tasks
- About scripts
- Creating scripts: an overview
- About ScriptMaker steps
- Control script steps
- Navigation script steps
- Sort, find, and print script steps
- Editing script steps
- Fields script steps
- Records script steps
- Windows script steps
- Files script steps
- Spelling script steps
- Open Menu Item script steps
- Miscellaneous script steps
- Changing scripts
- Duplicating, renaming, or deleting scripts
- Importing scripts
- Listing scripts in the Scripts menu
- Using buttons with scripts
- Example of a ScriptMaker script
- Chapter 11 Using formulas and functions
- Chapter 12 Importing and exporting data
- Chapter 13 Sharing databases on a network
- Chapter 14 Publishing databases on the Web
- About publishing databases on the Web
- How users work with databases on the Web
- What you need to publish databasesontheWeb
- Publishing databases on the Web: an overview
- Enabling FileMaker Pro Web Companion
- Configuring FileMaker Pro WebCompanion
- Enabling Web Companion sharing
- Setting up browser views
- Testing your published database
- About browser views for web publishing
- Chapter 15 Using ODBC with FileMakerPro
- Appendix A Customizing FileMaker Pro
- Appendix B Backing up and recovering files
- Appendix C FileMaker Pro Quick Reference (Windows)
- Appendix D FileMaker Pro Quick Reference (Mac OS)
- Index
Using ODBC with FileMaker Pro
15-11
5. Leave the user name and password blank and click OK.
Specifying the SQL query in FileMaker Pro
Start your SQL query with the SQL SELECT tab to specify what data
you want to extract from the data source.
1. If there is a SQL statement in the SQL Query area, click Clear Query.
2. In the SELECT tab, click the Salespeople table.
3. Select the Salesperson ID column, then click Insert into SQL Query.
4. Insert the following columns by double-clicking the column
name: Salesperson, Sales_Manager, and Sales_Region.
5. Click Execute. The Import Mapping dialog box appears. For more
information on importing records, see “Importing data into
FileMaker Pro” on page 12-2.
Importing ODBC data with a join
Use the WHERE tab in the FileMaker Pro query builder to create a
multi-table SQL query, or join. A join combines data from two or
more tables into a new table.
Specifying a SQL join
In this example, we want to view a report that contains information
about sales transactions (from the Sales_Data table), along with
information about the salesperson (from the Salespeople table). To
ensure that the data is combined in a meaningful way, you should
link the two tables with a matching field.
Because both tables in the ODBC example files contain the
Salesperson_ID column, we can create a variety of reports by doing
a join on the Salesperson_ID column.
Select the ODBC
data source you
previously configured
Specify columns to insert
in the SQL query
The SQL query is
automatically generated
Click to add statements