How can vb6 code filter records?

Hello experts. I’m using VB6 and MySQL in my project. I would like to know what function I should use in VB6 to filter specific records from a database. For example, when a user type in the search box ‘A’, all the row of a specific field that starts with letter ‘A’ will be available to user. How can I do that? Please explain it to me clearly on how can vb6 code filter records.
