Article ID: 149094
Article Last Modified on 7/13/2004
Option Explicit
Dim igColumn As Integer
Dim igRow As Integer
Dim vargBookmark As Variant
Private Sub DBGrid1_MouseUp(Button As Integer, Shift As Integer, _
X As Single, Y As Single)
igColumn = DBGrid1.ColContaining(X) 'Set the Cell Column number
igRow = DBGrid1.RowContaining(Y) 'Set the Cell Row number
vargBookmark = DBGrid1.RowBookmark(igRow) 'Set Bookmark Value
'Show the contents of the cell in a textbox
Text1.Text = DBGrid1.Columns(igColumn).CellValue(vargBookmark)
End Sub
Additional query words: kbVBp400 kbVBp600 kbdse kbDSupport kbVBp kbVBp500
Keywords: kbhowto KB149094