In vb6, I could do this. But now in .net, it is not working...

I have a richtextbox on my form and when I hit the submit button, it should save the contents of the richtextbox to my sql database as rtf code. I am using a stored procedure in sql to insert a new record. Here is the code I am using.

VB Code:
  1. adData.SelectCommand = New OleDbCommand
  2.  
  3.             With adData.SelectCommand
  4.                 .Connection = cnData
  5.                 .CommandText = "insert_TestItem @AccNum = '" & NewAccNum & "', " & _
  6.                   "@Outline = '" & txtOutline.Text & "', " & _
  7.                   "@Difficulty = '" & cboLevel.Text & "', " & _
  8.                   "@Stem = '" & Replace(rtbStem.Rtf, "'", "''") & "', " & _
  9.                   "@OptA = '" & Replace(rtbOptA.Rtf, "'", "''") & "', " & _
  10.                   "@OptB = '" & Replace(rtbOptB.Rtf, "'", "''") & "', " & _
  11.                   "@OptC = '" & Replace(rtbOptC.Rtf, "'", "''") & "', " & _
  12.                   "@OptD = '" & Replace(rtbOptD.Rtf, "'", "''") & "', " & _
  13.                   "@Key = '" & txtKey.Text & "', " & _
  14.                   "@CaseAccNum = '" & "???" & "', " & _
  15.                   "@RefAccNum = '" & txtReference.Text & "', " & _
  16.                   "@RefPage = '" & txtRefPage.Text & "', " & _
  17.                   "@AuthorID = '" & cboAuthor.Text & "', " & _
  18.                   "@EducatorID = '" & cboEducator.Text & "', " & _
  19.                   "@Status = '" & cboStatus.Text & "', " & _
  20.                   "@EntryDate = '" & txtEntryDate.Text & "', " & _
  21.                   "@EditDate = '" & CStr(Today) & "', " & _
  22.                   "@LastUsed = ''"
  23.                 .CommandType = CommandType.Text
  24.                 .ExecuteNonQuery()
  25.             End With

What happens, is when the commandtext is created it for some reason dies and stops adding to the commandtext string after the first richtextbox contents are added to it. I don't understand what the problem would be.

Let me know if this makes any sense...

Thanks