In this invention, when a printer driver uses data obtained by referring to a table, the printer driver searches a first table of two, first and second tables to obtain a search condition of the second table. The printer driver searches the second table using the obtained search condition to obtain required data. When another search condition is added, the search condition is added to the first able, and data corresponding to the added search condition is added to the second table.