Select in your recordset, then set the grid's datasource to your recordset:
strSQL = "Select * from myTable Wher EmpID = " & txtEmpID
Set rst = cn.Execute(strSQL)
Grid1.Datasource = rst
assuming you have a valid ADO connection called cn
________________________________________________________________
If you want to get the best response to a question, please check out FAQ222-2244 first
'If we're supposed to work in Hex, why have we only got A fingers?'