Wrox Programmer Forums
|
ASP.NET 2.0 Basics If you are new to ASP or ASP.NET programming with version 2.0, this is the forum to begin asking questions. Please also see the Visual Web Developer 2005 forum.
Welcome to the p2p.wrox.com Forums.

You are currently viewing the ASP.NET 2.0 Basics 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 12th, 2008, 03:28 AM
Authorized User
 
Join Date: Jun 2006
Posts: 88
Thanks: 0
Thanked 0 Times in 0 Posts
Default Sqlexception

Hi

I have written query like:

dim str as string="true"

Dim cmd As New OleDb.OleDbCommand("Select max(Invoice_No) from Invoice where flag= '" & str & "'", cn)

 cn.Open
If IsDBNull(cmd.ExecuteScalar()) = True Then

This statment fires exception:"No value given for one or more required parameters."

when i fire this query directly from access,it runs successfully

what is actual problem,i don't understand

Thanks
monika








Similar Threads
Thread Thread Starter Forum Replies Last Post
InitializeCulture causing Sqlexception Error... greglh BOOK: ASP.NET 2.0 Website Programming Problem Design Solution ISBN: 978-0-7645-8464-0 2 March 14th, 2008 11:16 AM
Catching a SQLException error digriz60 ASP.NET 1.0 and 1.1 Basics 5 January 14th, 2008 03:14 PM
SQLException no suitable driver zhuchunlai Apache Tomcat 2 November 29th, 2007 10:51 AM
java.sql.SQLException muthumari_p2003@yahoo.com SQL Server 2000 1 March 22nd, 2006 08:57 AM
SqlException error akibaMaila VB.NET 2002/2003 Basics 3 August 25th, 2005 09:14 AM





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