Importing data from external databases

You can import data into Quattro Pro from an external database, including data from a ODBC data source.

You can also link to external database tables. Database tables contain data extracted from a database, arranged in a specified sequence. Tables are useful when a database contains a large amount of data and you need to work with only a portion of it.

In addition, you can open .db or .dbf files directly in Quattro Pro and edit them as if they were spreadsheets, as long as they do not contain index or memo files.

When importing data from external databases, you have several options for displaying data. You can display duplicate rows of information in the data you import. For example, if the imported data lists all customers who have ordered books, any customers who have ordered more than one book can be listed on a new row for each book. In addition, you can include field names as column headings in the first row of data you import.

You can also join external database tables. When using more than one table, you must join common fields in the tables, even if they have different field names, to avoid duplicating their records in the data you import. For example, if two tables contain the same customer identification field, you must use the customer identification field to join the tables.

Because external databases can contain a large amount of information, it is useful to filter the amount of information that you import, retrieving only the portions of data you want. For example, you can list only those customers who have ordered a particular book so that you can send them a letter announcing the sequel.

Once the external database content is imported in Quattro Pro, you can modify the import settings and re-import the content. In addition, when changes are made in the source data, the changes are reflected in the linked table only when you reopen or refresh it. For more information about refreshing date, see “Refreshing data from external databases.” You can also delete the imported content, including the import settings that you specified.

You can open password-protected tables. For security, as you type the password, the pound symbol (#) represents the characters you type.


To import data from an external database

Wordperfect Quattro Pro btnbacktotopproc Importing data from external databases
1.
 
Click Insert Wordperfect Quattro Pro onestep Importing data from external databases External data Wordperfect Quattro Pro onestep Importing data from external databases Import data Wordperfect Quattro Pro onestep Importing data from external databases New.
2.
 
From the Data type list box, choose a type of data to import.
3.
 
Do one of the following:
Choose a database from the Database list.
In the Database path box, type the path where the database table is stored.
4.
 
Click Next.
5.
 
In the Select tables dialog box, enable the check boxes next to the database tables you want to import.
6.
 
Click Next.
7.
 
In the Set criteria dialog box, select the fields to import.
8.
 
Click Wordperfect Quattro Pro pgx add button Importing data from external databases to add the fields to the Selected fields list.
9.
 
In the Destination box, type a destination for the import results.
10.
 
Click the Finish button.

You can also
Change the position of a field in the Selected fields list
Click Arrow up Wordperfect Quattro Pro pgx arrowup Importing data from external databases or Arrow down Wordperfect Quattro Pro pgx arrowdown Importing data from external databases.
Remove a field from the Selected fields list
Click the Trash can Wordperfect Quattro Pro pgx trashcan Importing data from external databases.
Change the importing options
In the Set criteria dialog box, click the Options button and enable any of the available options.
Modify the query
In the Set criteria dialog box, click the Query properties button.
Join tables
In the Set criteria dialog box, click the Query properties button, then click the Joins tab.

Wordperfect Quattro Pro tip Importing data from external databases

 
You can refresh the data by clicking Insert Wordperfect Quattro Pro onestep Importing data from external databases External data Wordperfect Quattro Pro onestep Importing data from external databases Import data Wordperfect Quattro Pro onestep Importing data from external databases Refresh.

To link to an external database table

Wordperfect Quattro Pro btnbacktotopproc Importing data from external databases
1.
 
Click Insert Wordperfect Quattro Pro onestep Importing data from external databases External data Wordperfect Quattro Pro onestep Importing data from external databases Table link.
2.
 
In the Cells box, select the cells using the Range picker Wordperfect Quattro Pro pgx btnsel Importing data from external databases.
3.
 
In the Table box, select the database file using the Browse Wordperfect Quattro Pro pgx browse Importing data from external databases button.

Wordperfect Quattro Pro tip Importing data from external databases

 
You can also link to external database tables by clicking the Table link Wordperfect Quattro Pro pgx tablelink Importing data from external databases button on the Data manipulation toolbar.

To insert an external database into Quattro Pro

Wordperfect Quattro Pro btnbacktotopproc Importing data from external databases
1.
 
Click File Wordperfect Quattro Pro onestep Importing data from external databases Open.
2.
 
Choose the drive and folder where the file is stored.
3.
 
Choose the filename extension from the File type list box.
4.
 
Double-click the filename.

Wordperfect Quattro Pro note Importing data from external databases

 
If the external database file has more than 1,000,000 records, close the file when you are done, but do not save it. If you save the file, records that are not displayed are lost.
 
If no Open Database Connectivity ODBC sources are listed in the Data type list, you can add them through the ODBC options in the Control Panel. If no Borland Database Engine (BDE) sources (also called aliases) are listed, you can create them using the Borland Database Engine 5.01 utilities.

Wordperfect Quattro Pro tip Importing data from external databases

 
You can also insert external databases by clicking Insert Wordperfect Quattro Pro onestep Importing data from external databases External data Wordperfect Quattro Pro onestep Importing data from external databases Import database.

To set import options for external databases

Wordperfect Quattro Pro btnbacktotopproc Importing data from external databases
1.
 
Click Insert Wordperfect Quattro Pro onestep Importing data from external databases External data Wordperfect Quattro Pro onestep Importing data from external databases Import data Wordperfect Quattro Pro onestep Importing data from external databases Edit.
2.
 
Click Options.
3.
 
In the Import options dialog box, enable any of the following check boxes:
Allow duplicate rows — displays duplicate rows of information in the data you import
Include column headings — displays field names as column headings in the first row of data you import
Keep query definition — maintains the parameters you specify the next time you import tables from external databases

Wordperfect Quattro Pro note Importing data from external databases

 
The database must be imported before carrying out this procedure. For more information, see “To import data from an external database.”

To join external database tables

Wordperfect Quattro Pro btnbacktotopproc Importing data from external databases
1.
 
Click Insert Wordperfect Quattro Pro onestep Importing data from external databases External data Wordperfect Quattro Pro onestep Importing data from external databases Import data Wordperfect Quattro Pro onestep Importing data from external databases Edit.
2.
 
Choose the database tables to join.
3.
 
Click Query properties.
4.
 
In the Query properties dialog box, click the Joins tab.
5.
 
Choose a field from the first Field list.
6.
 
Choose the corresponding field from the second Field list.
7.
 
Choose the equal sign from the Operator list.
8.
 
Click OK.
9.
 
Click Finish.

Wordperfect Quattro Pro note Importing data from external databases

 
The database must be imported before carrying out this procedure. For more information, see “To import data from an external database.”

Wordperfect Quattro Pro tip Importing data from external databases


 
You can join more than two tables by clicking And in the Query properties dialog box.

To filter an external database

Wordperfect Quattro Pro btnbacktotopproc Importing data from external databases
1.
 
Click Insert Wordperfect Quattro Pro onestep Importing data from external databases External data Wordperfect Quattro Pro onestep Importing data from external databases Import data Wordperfect Quattro Pro onestep Importing data from external databases Edit.
2.
 
Click Query properties.
3.
 
In the Query properties dialog box, click the Filters tab.
4.
 
Choose a field to filter from the Criteria field list.
5.
 
Choose an operator from the Operator list.
6.
 
Enable the List values check box.
7.
 
Choose a value from the Value list or type a value of your own.
8.
 
Click OK.
9.
 
Click Finish.

Wordperfect Quattro Pro tip Importing data from external databases

 
Clicking And in the Query properties dialog box narrows the filter results. For example, you can generate a list of customers who have a credit limit above a specified amount and who live in a certain city.
 
Clicking Or in the Query properties dialog box broadens the filter results. For example, you can generate a list of customers who have a credit limit above a specified amount and who live in a certain city.

To modify the external database import settings

Wordperfect Quattro Pro btnbacktotopproc Importing data from external databases
 
Click Insert Wordperfect Quattro Pro onestep Importing data from external databases External data Wordperfect Quattro Pro onestep Importing data from external databases Import data Wordperfect Quattro Pro onestep Importing data from external databases Edit.

To delete imported database content and settings

Wordperfect Quattro Pro btnbacktotopproc Importing data from external databases
 
Click Insert Wordperfect Quattro Pro onestep Importing data from external databases External data Wordperfect Quattro Pro onestep Importing data from external databases Import data Wordperfect Quattro Pro onestep Importing data from external databases Delete.

To open a password-protected table

Wordperfect Quattro Pro btnbacktotopproc Importing data from external databases
1.
 
Click File Wordperfect Quattro Pro onestep Importing data from external databases Open.
2.
 
Choose the drive and folder where the file is stored.
3.
 
Choose the filename extension from the File type list box.
4.
 
Double-click the filename.
5.
 
In the Password dialog box, type the password for the table.
6.
 
Click one of the following buttons:
Add — stores the password in memory, so that if other tables you want to query require the same password, you can open them without retyping the password
Remove — releases the password from memory, so that if any table you want to query requires the password, you must retype the password to open it
Remove all — deletes all passwords from memory, so that you must type a password for any protected table you want to query

Wordperfect Quattro Pro note Importing data from external databases

 
When you open a password-protected database table the password for the table is discarded when you close the file.

Importing data from external databases