database - VB.Net No value given for one or more required parameters with update -


Hello, I am trying to build a reservation system for their work which is currently present communication database. But I'm having trouble making changes to this database.

I'm getting error

"There is no value to one or more of the required standards with updated"

access my code below for injecting the changes in the database I I've changed some sensitive information with Striks I Thankyou

  private sub AddAddButton_Click (this object, e EventArgs aS) handles AddAddButton.Click dim Conn New OleDb.OleDbConnection (as "provider = Microsoft.ACE.OLEDB.12.0 ;. data session En: rote = C: \ ********************** jet Oledibi: Database Password = ********* * ") Dim cmd effort OleDb.OleDbCommand = New OleDb.OleDbCommand ("Update RepairOrders SET ROOther = @Other, ROJobType = @Type, ROJobTime = @Time, RODelPicDate = @DelPic Where Rono = @JobNo", Connecticut) cmd .Parameters.AddWithValue ( "other @" AddOtherText.Text) cmd.Parameters.AddWithValue ( "@ type", AddTypeCombo.Text) If AddTimeCombo.Text = "AM" then cmd.Parameters.AddWithValue ( "@ time", "1") elseif AddTimeCombo.Text = "prime" then cmd.Parameters.AddWithValue ( "@ time", "2") or cmd.Parameters.AddWithValue ( "@ time", "0") CmdkParameterskAddWithValue finished ( "Delpik ", AddDatePick.Value.Date) cmd.Parameters.A ddWithValue ( "@JobNo", AddJobText.Text) conn.Open () cmd.ExecuteNonQuery () added MessageBox.Show ( "booking", "test") conn.Close () Catch ex exception as MsgBox (ex try .Message) end sub sub  


Comments

Popular posts from this blog

sqlite3 - UPDATE a table from the SELECT of another one -

c# - Showing a SelectedItem's Property -

javascript - Render HTML after each iteration in loop -