Ok so I've changed my plan of attack on this...

My question now is... is there a way to step through an entire column of information without knowing what the last field's value is going to be.

For example: repeat until Field value = null... or something like that?

Here's my new code (using two List boxes so I can quickly double check that operations/functions work correctly)...

VB Code:
  1. Dim strConnectionString As String = "Provider=Microsoft.Jet.OLEDB.4.0;Data Source=C:\Documents and Settings\jcarney\My Documents\Visual Studio Projects\WindowsApplication2\WindowsApplication2\Relearn.mdb"
  2.     Dim cnnDatabase As New OleDb.OleDbConnection(strConnectionString)
  3.     Dim cmdDatabase As New OleDb.OleDbCommand
  4.     Dim tableName As String
  5.     Sub frmThinker_Load(ByVal sender As System.Object, ByVal e As System.EventArgs) Handles MyBase.Load
  6.         Try
  7.             cnnDatabase.Open()
  8.             tableName = "CustomerID"
  9.  
  10.             Dim strSQL = "SELECT * FROM " & tableName
  11.             Dim adpDatabase As New OleDb.OleDbDataAdapter(strSQL, cnnDatabase)
  12.  
  13.             Dim dstRelearn As New DataSet
  14.             adpDatabase.Fill(dstRelearn, "Parts")
  15.  
  16.             Dim rowParts As DataRow
  17.             Dim litParts As ListViewItem
  18.             For Each rowParts In dstRelearn.Tables("parts").Rows
  19.                 litParts = lvwOne.Items.Add(rowParts("CustomerID"))
  20.                 litParts.SubItems.Add(rowParts("Name"))
  21.                 litParts.SubItems.Add(rowParts("Address"))
  22.                 litParts.SubItems.Add(rowParts("City"))
  23.                 litParts.SubItems.Add(rowParts("State"))
  24.             Next
  25.         Catch ex As Exception
  26.             MsgBox(ex.Message)
  27.         Finally
  28.             cnnDatabase.Close()
  29.         End Try
  30.     End Sub
  31.  
  32.     Sub btnButton_Click(ByVal sender As System.Object, ByVal e As System.EventArgs) Handles btnButton.Click
  33.         Dim strNames As String
  34.         Dim aryNames() As Char
  35.         tableName = "CustomerID"
  36.  
  37.         Try
  38.             '***Convert Values
  39.             cnnDatabase.Open()
  40.             cmdDatabase.Connection = cnnDatabase
  41.             cmdDatabase.CommandText = "SELECT * FROM CustomerID WHERE CustomerID = 1001;"
  42.  
  43.             Dim rdrMyReader As OleDb.OleDbDataReader = cmdDatabase.ExecuteReader
  44.             rdrMyReader.Read()
  45.             strNames = rdrMyReader("Name")
  46.             aryNames = strNames.ToCharArray()
  47.  
  48.             Dim intArrayCounter As Integer = 0
  49.             Dim intCurrent As Short = 0
  50.             Dim intNew As Short = 0
  51.  
  52.             Do Until intArrayCounter = 10
  53.                 If aryNames(intArrayCounter) = "M" Then
  54.                     aryNames(intArrayCounter) = "u"
  55.                End If
  56.                 intArrayCounter += 1
  57.             Loop
  58.            
  59.             cnnDatabase.Close()
  60.  
  61.  
  62.             '***Update Database
  63.             cnnDatabase.Open()
  64.             Dim myCommand As New OleDb.OleDbCommand
  65.             myCommand.Connection = cnnDatabase
  66.             myCommand.CommandText = "UPDATE CustomerID SET [Name]= '" & aryNames & "' WHERE CustomerID = 1001;"
  67.             myCommand.ExecuteNonQuery()
  68.             cnnDatabase.Close()
  69.  
  70.  
  71.  
  72.             '***Fill Second Grid
  73.             cnnDatabase.Open()
  74.             Dim strSQL = "SELECT * FROM " & tableName
  75.             Dim adpDatabase As New OleDb.OleDbDataAdapter(strSQL, cnnDatabase)
  76.  
  77.  
  78.             Dim dstRelearn As New DataSet
  79.             adpDatabase.Fill(dstRelearn, "Parts")
  80.  
  81.             Dim rowParts As DataRow
  82.             Dim litParts As ListViewItem
  83.             For Each rowParts In dstRelearn.Tables("parts").Rows
  84.                 litParts = lvwTwo.Items.Add(rowParts("CustomerID"))
  85.                 litParts.SubItems.Add(rowParts("Name"))
  86.                 litParts.SubItems.Add(rowParts("Address"))
  87.                 litParts.SubItems.Add(rowParts("City"))
  88.                 litParts.SubItems.Add(rowParts("State"))
  89.             Next
  90.         Catch ex As Exception
  91.             MsgBox(ex.Message)
  92.         Finally
  93.             cnnDatabase.Close()
  94.         End Try
  95.  
  96.     End Sub