Click to See Complete Forum and Search --> : Retrieve current record


tj_amarnath
March 12th, 2007, 07:22 AM
i am using datagrid in vb6. datagrid retrieves a table. now when i click delete button it will delete currently pointed record.before that i want to display one of fields in that record. how to do this?

datagrid is connected with the adodc

Private Sub delCmd_Click()
Dim res
res = MsgBox("Are you Sure to delete current record", 1)
If res = 1 Then
Adodc5.Recordset.Delete
Adodc5.Recordset.Requery
Adodc5.Refresh
End If
End Sub

datagrid contains 3 columns. i want to display first column data of currently pointed record. reply soon..