Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations wOOdy-Soft on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

displaying filtered data in a grid

Status
Not open for further replies.

FBM357

MIS
Jun 2, 2003
77
US
I've a program (concept mimick inventory) and would like to display a history (grid showing items related to employee ID). I had a head full of hair before i began... now i'm bald!

Any help in the right direction would be appreciated!

TIA,

FBM
 
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?'
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top