Here's how to search a Database by making your own parameter using Delphi
The following is an example of a Delphi program that searches a database based on the client's name, ID, and some purchased items. It's easy to follow along, and if you have Delphi you can try it out yourself.
The first step is to open up Delphi. Once you have it opened and a blank form in front of you, you'll need to grab three (3) table components and three (3) data sources . You will find them under the Data Controls Tab. Click on the appropriate image, then click on the form. Once you have all of them down, you're ready to go to the next step.