Public Class frmTest
Private Sub DBLoadNames()
Dim i, countNames, last As Integer
countNames = BindingSource1.Count
last = countNames - 1
For i = 0 To countNames
If i = last Then
MsgBox("Last Name Entry: " & BindingSource1.Current("ChildName"))
Exit For
End If
MsgBox(BindingSource1.Current("ChildName"))
BindingSource1.MoveNext()
Next
End Sub
Private Sub frmTest_Load(ByVal sender As System.Object, ByVal e As System.EventArgs) Handles MyBase.Load
ChildNameTableAdapter.Fill(TestDataSet.ChildName)
End Sub
Private Sub DisplayButton_Click(ByVal sender As System.Object, ByVal e As System.EventArgs) Handles DisplayButton.Click
Call DBLoadNames()
End Sub
End Class
Thanks...I got it already...thanks my friend;-)