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 gkittelson on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

using datagrid control to pick a record

Status
Not open for further replies.

fwonny

Programmer
Jul 9, 2003
6
US
I have a form which searches for a customers' last name in a table. The result of the search goes to a datagrid control. How do I retrieve the value of the bound column (i.e. customerid)? The bookmark property only returns the absolute position of the record.

 
You just need to find the value using the index of the column. e.g. In the click event of the datagrid try
Code:
MsgBox DataGrid1.Columns(0)

this will give you the text that is in the 1st column. changing the 0 to the index you require will give the other details.
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top