How can I search a field in a database when the user clicks on a cmd button?

For example if they wanted to find the name Rhys in a Table called details in a database called MyDatabase..

Assuming that they wrote it into a text area so the button would read the text box then check the database

I know this is easy but I cant get it to work.....

Cheers

Rhys