Link to home
Start Free TrialLog in
Avatar of webquests
webquestsFlag for United States of America

asked on

Selecting data from MSHFlexGrid vb6

Hello all,

This issue is driving me nuts as it should be simple:
I want to select a cell of retrieved data and have it displayed in a textbox.
I have a form with a MSHFlexGrid that uses Adodc to pull data from a SQL table (select title form titles).
The results of the query show up in the MSHFlexGrid as they should and the data will display in the textbox. However, no matter which cell I choose only the 1st (top) row will display in the textbox. I am using the following:

Private Sub MSHFlexGrid1_Click()
txtTitles.Text = Adodc1.Recordset.Fields("title")
End Sub  

Thanks in advance for your help.

AJS
ASKER CERTIFIED SOLUTION
Avatar of Sethi
Sethi
Flag of India image

Link to home
membership
This solution is only available to members.
To access this solution, you must be a member of Experts Exchange.
Start Free Trial