Using update command for Typed DataSets dataadapter

I am trying to do an update to the database based on my typed dataset, here is the code i have and it doesnt seem to be inserting anything.  

    Dim qds As New dsQuestions
    Dim qda As New dsQuestionsTableAdapters.QuestionsTableAdapter
    Dim qdt As New dsQuestions.QuestionsDataTable
    Dim qdr As dsQuestions.QuestionsRow

    Protected Sub btnAddAnother_Click(ByVal sender As Object, ByVal e As System.EventArgs)

        qdr = CType(qdt.NewRow, dsQuestions.QuestionsRow)

        With qdr
            Select Case ddlQuestionType.SelectedValue.ToLower
                Case "test"
                    .TestID = CInt(Request.QueryString("id"))
                Case "workbook"
                    .WorkbookID = CInt(Request.QueryString("id"))
            End Select
            .QuestionText = txtQuestion.Text
            .QuestionType = 1
            .Answer1 = TextBox1.Text
            .Answer2 = TextBox2.Text
            .Answer3 = TextBox3.Text
            .Answer4 = TextBox4.Text
            .Answer5 = TextBox5.Text
            If .HasErrors Then
                Throw New Exception("there are errors")
            End If

        End With

    End Sub
Who is Participating?
I wear a lot of hats...

"The solutions and answers provided on Experts Exchange have been extremely helpful to me over the last few years. I wear a lot of hats - Developer, Database Administrator, Help Desk, etc., so I know a lot of things but not a lot about one thing. Experts Exchange gives me answers from people who do know a lot about one thing, in a easy to use platform." -Todd S.

Bob LearnedCommented:

1) You are filling dsQuestions.QuestionsDataTable and not the DataSet, so why have a DataSet.
2) To add rows, follow these steps:

   a) Create a new row
   b) Set the values
   c) Add the row to the DataTable.

     qdr = qdt.NewQuestionsRow()
     qdr.QuestionText = txtQuestion.Text
     qdr.QuestionType = 1
     qdr.Answer1 = TextBox1.Text
     qdr.Answer2 = TextBox2.Text
     qdr.Answer3 = TextBox3.Text
     qdr.Answer4 = TextBox4.Text
     qdr.Answer5 = TextBox5.Text


Experts Exchange Solution brought to you by

Your issues matter to us.

Facing a tech roadblock? Get the help and guidance you need from experienced professionals who care. Ask your question anytime, anywhere, with no hassle.

Start your 7-day free trial
It's more than this solution.Get answers and train to solve all your tech problems - anytime, anywhere.Try it for free Edge Out The Competitionfor your dream job with proven skills and certifications.Get started today Stand Outas the employee with proven skills.Start learning today for free Move Your Career Forwardwith certification training in the latest technologies.Start your trial today
Visual Basic.NET

From novice to tech pro — start learning today.

Question has a verified solution.

Are you are experiencing a similar issue? Get a personalized answer when you ask a related question.

Have a better answer? Share it in a comment.