G
Guest
The following snippet was a poorly written attempt to update a table by code. There is every reason I should get an error message. The connect string is correct. However, there are no bound controls. I do not create a table nor a row from the dataset. The messagebox in the snipped below properly tells me that no rows were modified. However, I didn't get an error message
An answer would be greatly appreciated
polynomial5
Private Sub btnSaveAndClose_Click(ByVal sender As System.Object, ByVal e As System.EventArgs) Handles btnSaveAndClose.Clic
Tr
'Dim dChor As New clsDataCho
'sQuick = txtQuickWord.Tex
'sQuick = sQuick.Tri
'dChor.NewKeywordSet(Me
MsgBox(cnQWKS.DataSource.ToString
cnQWKS.Open(
Dim iKSModified = daQWKS.Update(DsQWKS1, "KeywordSets"
Dim strOutput As Strin
strOutput = "Modified " & iKSModified & " KeywordSet(s)
MessageBox.Show(strOutput, "Update succeeded!", MessageBoxButtons.OK, MessageBoxIcon.Information
daQWK.Update(DsQWKS1, "Keywords"
daQWSP.Update(DsQWKS1, "SearchPhrase"
daQWSP.Update(DsQWKS1, "KeywordSetAssignments"
Catch ex As Exceptio
MessageBox.Show("Type = " & ex.GetType.ToString & vbCr & "Message = " & ex.Message
End Tr
cnQWKS.Close(
Me.Close(
End Sub
An answer would be greatly appreciated
polynomial5
Private Sub btnSaveAndClose_Click(ByVal sender As System.Object, ByVal e As System.EventArgs) Handles btnSaveAndClose.Clic
Tr
'Dim dChor As New clsDataCho
'sQuick = txtQuickWord.Tex
'sQuick = sQuick.Tri
'dChor.NewKeywordSet(Me
MsgBox(cnQWKS.DataSource.ToString
cnQWKS.Open(
Dim iKSModified = daQWKS.Update(DsQWKS1, "KeywordSets"
Dim strOutput As Strin
strOutput = "Modified " & iKSModified & " KeywordSet(s)
MessageBox.Show(strOutput, "Update succeeded!", MessageBoxButtons.OK, MessageBoxIcon.Information
daQWK.Update(DsQWKS1, "Keywords"
daQWSP.Update(DsQWKS1, "SearchPhrase"
daQWSP.Update(DsQWKS1, "KeywordSetAssignments"
Catch ex As Exceptio
MessageBox.Show("Type = " & ex.GetType.ToString & vbCr & "Message = " & ex.Message
End Tr
cnQWKS.Close(
Me.Close(
End Sub