|
-
Feb 18th, 2003, 03:22 PM
#1
Thread Starter
Member
update help
There's probably something obvious I'm missing here, but I can't get this code to update my Access table...
Private Sub Button1_Click(ByVal sender As Object, ByVal e As System.EventArgs) Handles Button1.Click
Try
If (rb1Y.Checked Or rb1N.Checked) Then
Response.Redirect("orientationB.aspx")
Else
'advise of error
l blError.Text = ">> There is at least one Yes/No question left unanswered. Please review. <<"
Exit Sub
End If
'update answer table
If rb1Y.Checked Then
DsAnsOA1.Tables("tableOAAns").Rows(0).Item(1) = "yes"
Else
DsAnsOA1.Tables("tableOAAns").Rows(0).Item(1) = "no"
End If
DsAnsOA1.Tables("tableOAAns").Rows(0).Item(2) = tb2.Text
DsAnsOA1.Tables("tableOAAns").Rows(0).Item(3) = tb3.Text
DsAnsOA1.Tables("tableOAAns").Rows(0).Item(4) = tb4.Text
daA.Update(DsAnsOA1)
Catch ex As Exception
Finally
' nothing here yet
End Try
End Sub
can anyone give me a clue?...
thanks much...Ooogs
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
|