Wrox Programmer Forums
Go Back   Wrox Programmer Forums > .NET > Other .NET > ADO.NET
|
ADO.NET For discussion about ADO.NET.  Topics such as question regarding the System.Data namespace are appropriate.  Questions specific to a particular application should be posted in a forum specific to the application .
Welcome to the p2p.wrox.com Forums.

You are currently viewing the ADO.NET section of the Wrox Programmer to Programmer discussions. This is a community of software programmers and website developers including Wrox book authors and readers. New member registration was closed in 2019. New posts were shut off and the site was archived into this static format as of October 1, 2020. If you require technical support for a Wrox book please contact http://hub.wiley.com
 
Old June 23rd, 2004, 05:30 PM
Registered User
 
Join Date: Apr 2004
Posts: 7
Thanks: 0
Thanked 0 Times in 0 Posts
Default No value given for one or more required parameters

I am getting the error: " No value given for one or more required parameters. "

My code is :

 insnamequery = "SELECT INDIVIDUALNAME.NameID,[FirstName]+' '+[LastName] AS Name, LastName FROM INDIVIDUALNAME where Name='" & dropinspectorname.SelectedItem.Value & "'"

 Dim insnamesource As New OleDbCommand(insnamequery, myconnection)
            Response.Write("**" & insnamequery & "**")
            Response.Flush()
            Dim insnamereader As OleDbDataReader
        Error Line***********
    insnamereader = insnamesource.ExecuteReader() **********
            While (insnamereader.Read())
                insnameid = insnamereader(0)
                Response.Write("**" & insnameid)
                Response.Flush()
            End While

            insnamereader.Close()

I am getting what i sthe problem. Please help.

Thanks alot

Regards Nidy


 
Old June 27th, 2004, 09:44 AM
planoie's Avatar
Friend of Wrox
 
Join Date: Aug 2003
Posts: 5,407
Thanks: 0
Thanked 16 Times in 16 Posts
Default

I don't see anything wrong with what you have. Confirm that all of the field names are correct. That's usually where that error will come from.





Similar Threads
Thread Thread Starter Forum Replies Last Post
Some help required ! codenet C# 2005 1 September 24th, 2007 04:01 PM
No value given for one or more required parameters ableton ADO.NET 2 July 18th, 2006 02:12 AM
No value given for one or more required parameters djatsii Classic ASP Databases 16 January 4th, 2006 05:49 PM
No value given for one or more required parameters imercha Classic ASP Databases 1 December 21st, 2005 06:44 PM
No value given for one or more required parameters vlado Classic ASP Databases 10 October 5th, 2004 09:10 PM





Powered by vBulletin®
Copyright ©2000 - 2020, Jelsoft Enterprises Ltd.
Copyright (c) 2020 John Wiley & Sons, Inc.