Query1.SQL.Text:='select * from "customer\customer.db" customer, "orders\orders.db" orders where customer.custno=orders.custno'; Query1.Open;