How can I filter the data to be displayed from to fields in the database?

Example:
Name=Jay
Year=2013

report.RecordSe lectionFormula = "{table1.name}= " & txtname.text

I got the name already? Now How What To Do If I Add The "Year"?