Tutorial Chapter 4: Query by Example
The program in this chapter allows the user to search a database by
entering criteria in a form. The search criteria is used to build an SQL
SELECT
statement to retrieve the desired database rows. A cursor is defined
in the program, to allow the user to scroll back and forth between the rows of the result set.
Testing the success of the SQL statements and handling errors is illustrated.