|
-
Jun 21st, 2004, 10:26 AM
#1
Thread Starter
Addicted Member
Searching dataset
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!
Posting Permissions
- You may not post new threads
- You may not post replies
- You may not post attachments
- You may not edit your posts
-
Forum Rules
|
Click Here to Expand Forum to Full Width
|