473,320 Members | 1,926 Online
Bytes | Software Development & Data Engineering Community
Post Job

Home Posts Topics Members FAQ

Join Bytes to post your question to a community of 473,320 software developers and data experts.

No value given for one or more required parameters

No value given for one or more required parameters

Always I Have This MSG when i do update

Can Any one Help me. ??????????
Expand|Select|Wrap|Line Numbers
  1. Public Sub Update(ByVal Code As Integer, _
  2.                       ByVal Desc As String, _
  3.                       ByVal Type As String, _
  4.                       ByVal Msg As Boolean)
  5.  
  6.         Using Cmd As New OleDbCommand
  7.             clsConn.OpenConn()
  8.  
  9.             Cmd.CommandText = "Update [Users] Set " & _
  10.              "[UserDesc] = '" & Desc.ToString & "', " & _
  11.              "[UserType] = '" & Type.ToString & "' " & _
  12.              "Where [UserCode] = '" & Code & "'"
  13.  
  14.  
  15.             clsConn.OpenConn()
  16.  
  17.             Cmd.Connection = clsConn.Conn
  18.  
  19.             Cmd.ExecuteNonQuery()
  20.  
  21.             clsConn.CloseConn()
  22.         End Using
  23.  
  24.         If Msg = True Then MsgBox("Update Completed", MsgBoxStyle.Information, " ")
  25.     End Sub
Jun 16 '10 #1
2 1741
Aimee Bailey
197 Expert 100+
try getting rid of the single quotation's in your where clause, it's an integer, so you want it to be treated as one.

Best of luck!
Jun 17 '10 #2
ThatThatGuy
449 Expert 256MB
@eliejnohra
Its probably that your're not updating required values such as Primary key constrained columns...

did you check the CommandText property of Command at debug mode...
Jun 17 '10 #3

Sign in to post your reply or Sign up for a free account.

Similar topics

7
by: mp | last post by:
No value given for one or more required parameters. Description: An unhandled exception occurred during the execution of the current web request. Please review the stack trace for more information...
3
by: Brian Foree | last post by:
I am developing an ASP.NET application that uses Access 2000 as its backend, and have just started getting the following error on 2 ASP.NET pages that had been working until late last week (and I...
3
by: Grayscale | last post by:
Hello, When I execute the code below, I get: "Microsoft JET Database Engine (0x80040E10) No value given for one or more required parameters." error message in the first line. Rs.Open...
15
by: Dave | last post by:
I am getting the error above intermittantly with an ASP 3.0 page using an MS Access 2003 database. I have searched Google extensively and found the following possible causes for this error: A...
0
by: Gwen Crutcher | last post by:
I keep getting the error "No value given for one or more required parameters", but not sure why. Can anyone please look at my code snipet and see if you see any reason why I could be getting this...
0
by: AxleWacl | last post by:
Hi, The below error is what I am receiving. The code im using is below the error, for the life of me, I can not see where any parameter is missing..... Server Error in '/FleetcubeNews'...
0
by: DolphinDB | last post by:
The formulas of 101 quantitative trading alphas used by WorldQuant were presented in the paper 101 Formulaic Alphas. However, some formulas are complex, leading to challenges in calculation. Take...
0
by: ryjfgjl | last post by:
ExcelToDatabase: batch import excel into database automatically...
0
by: Vimpel783 | last post by:
Hello! Guys, I found this code on the Internet, but I need to modify it a little. It works well, the problem is this: Data is sent from only one cell, in this case B5, but it is necessary that data...
0
by: jfyes | last post by:
As a hardware engineer, after seeing that CEIWEI recently released a new tool for Modbus RTU Over TCP/UDP filtering and monitoring, I actively went to its official website to take a look. It turned...
0
by: ArrayDB | last post by:
The error message I've encountered is; ERROR:root:Error generating model response: exception: access violation writing 0x0000000000005140, which seems to be indicative of an access violation...
1
by: PapaRatzi | last post by:
Hello, I am teaching myself MS Access forms design and Visual Basic. I've created a table to capture a list of Top 30 singles and forms to capture new entries. The final step is a form (unbound)...
0
by: CloudSolutions | last post by:
Introduction: For many beginners and individual users, requiring a credit card and email registration may pose a barrier when starting to use cloud servers. However, some cloud server providers now...
0
by: Shællîpôpï 09 | last post by:
If u are using a keypad phone, how do u turn on JavaScript, to access features like WhatsApp, Facebook, Instagram....
0
by: af34tf | last post by:
Hi Guys, I have a domain whose name is BytesLimited.com, and I want to sell it. Does anyone know about platforms that allow me to list my domain in auction for free. Thank you

By using Bytes.com and it's services, you agree to our Privacy Policy and Terms of Use.

To disable or enable advertisements and analytics tracking please visit the manage ads & tracking page.