how do I store the contents of a cell in a dbgrid in a variable when I click on a row? i tried with the following code, but what got stored was the value of the first row, which is selected when the form is loaded...
Private Sub DBGrid1_Click()
varRecord = DBGrid1.Bookmark
Data1.Recordset.Bookmark = varRecord
varRecord = Data1.Recordset.Fields("Field"
End Sub
Private Sub DBGrid1_Click()
varRecord = DBGrid1.Bookmark
Data1.Recordset.Bookmark = varRecord
varRecord = Data1.Recordset.Fields("Field"
End Sub