Hi All,

I have a form that calls another form when you doubleclick a record from a datagrid. The form opens but it does not find the specific record.

'form with datagrid
Private Sub dgCd_Click(ByVal sender As Object, ByVal e As System.EventArgs) Handles dgCd.DoubleClick
txtTest.Text = sv
sv = dgCd.Item(dgCd.CurrentCell.RowNumber, dgCd.CurrentCell.ColumnNumber)
Call Open_Ims()
End Sub


'functionto open form and step through dataset (NOT!)
Public Function Open_Ims()

Dim frmacs As New frmacs
frmacs.Show()

If Not frmacs.editC_ID.Text = sv Then
frmacs.BindingContext(frmacs.DsIms, "CDetails").Position = frmacs.BindingContext(frmacs.DsIms, "CDetails").Position + 1
Else
MsgBox("ok")
End If

End Function

any help appreciated!