Wrox Programmer Forums
|
ASP.NET 1.0 and 1.1 Basics ASP.NET discussion for users new to coding in ASP.NET 1.0 or 1.1. NOT for the older "classic" ASP 3 or the newer ASP.NET 2.0.
Welcome to the p2p.wrox.com Forums.

You are currently viewing the ASP.NET 1.0 and 1.1 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 May 24th, 2005, 11:26 AM
Registered User
 
Join Date: May 2005
Posts: 2
Thanks: 0
Thanked 0 Times in 0 Posts
Default Trouble with SQL statement

Hello,
    I'm having some trouble getting a SQL Query to work. It seems pretty basic so I'm not sure what the problem is. The error message I'm receiving is Microsoft JET Database Engine error '80040e10' No value given for one or more required parameters. /boe/index.asp, line 178. Line 178 is the set rs=db.execute(qs4) line. Any help would be hot. The code is below.


set db = Server.CreateObject("ADODB.Connection")
db.Open "Provider=Microsoft.Jet.OLEDB.4.0;Data Source=data_file_path"

qs4="Select heading, link, description, picture From tblboe Where category=agenda Order by priority, description;"

Response.Write("Sql String = " & qs4 & "<Br>")

set rs=server.createObject("adodb.recordset")
set rs=db.execute(qs4)


 
Old May 24th, 2005, 03:11 PM
Registered User
 
Join Date: May 2005
Posts: 2
Thanks: 0
Thanked 0 Times in 0 Posts
Default

I figured it out. In the following code I needed to add delimeters around the Where clause. (Where category='agenda')

qs="Select heading, link, description, picture From tblboe Where category='agenda' Order by priority, description;"






Similar Threads
Thread Thread Starter Forum Replies Last Post
Trouble Using For Next Statement slbibs ASP.NET 2.0 Professional 9 September 19th, 2008 09:44 AM
Trouble with IF statement jazzcatone Classic ASP Basics 1 October 19th, 2005 04:43 AM
Trouble executing SQL statement turbo_rabbit ASP.NET 1.0 and 1.1 Basics 13 July 6th, 2005 01:31 PM
Trouble executing SQL statement turbo_rabbit Classic ASP Databases 6 July 6th, 2005 01:30 PM
Trouble with mysql statement cbright JSP Basics 1 October 2nd, 2003 06:22 AM





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