How to search the data from ms access database in vb6 0

"you need to use datagrid and adodc"
----sample code and sample table and field
adodc1.recordsource = "SELECT * FROM SAMPLE_TABLE WHERE SAMPLE_FIELD = '" + TXTSAMPLE.TEXT + "'" * you can add more...

NOTE: be sure to connect adodc to database and put this sample code (select * form sample_table) to recordsource of adodc, then connect the datagrid to adodc(in datasource of datagrid)