Home | Advertising Info68 USERS CURRENTLY ONLINE   
   Site Search Contact Us Friday, March 14, 2025  
 
 


 
ASPProtect
User Management Application with web based screens that allow you to manage users.
www.ASPProtect.com
 
ASPBanner
Banner Rotation system. Advertisers can monitor online statistical reports via their web browsers.
www.ASPBanner.com
 
ASP Photo Gallery
Upload an unlimited amount of albums. Set up categories.Image resizing thumbnail creation.
www.ASPPhotoGallery.com
 
ASPClassifieds
Classifieds system. Set up categories. Users can register themselves. Supports picture uploads.
www.ASPClassifieds.com



DISCUSSION ARCHIVES
 



We didn't realize
the site was so popular.

Other Stuff
 

 
 
Active Server Pages ASP programs help tutorial tutorials routine routines jobs listserve mailinglist bulletin board bulletin boards programming snippet snippets CJWSoft ASPProtect ASPBanner ASPClassifieds



(Advanced)  (Components)  (Database)  (General)  (Vbscript)




ASPProtect

 
Subject: ODBC Error
From: Paul Debenedittis
Date: 3/7/1999 12:03:14 PM
IP: 209.131.171.31



 

I received this error when trying to read information from a database.
Microsoft OLE DB Provider for ODBC Drivers error '80040e10'

[Microsoft][ODBC Microsoft Access 97 Driver] Too few parameters. Expected 1.

The code used is
SQL="SELECT Table.* FROM Table ORDER BY Table.num"
Set ConnObj = Server.CreateObject("ADODB.Connection")
ConnObj.Open "databasename"
Set objCommand=Server.CreateObject("ADODB.Command")
Set objRS = Server.CreateObject("ADODB.Recordset")
objCommand.CommandText=SQL
objCommand.CommandType=adCmdText
Set objCommand.ActiveConnection=ConnObj
objRS.Open objCommand,,adOpenKeySet

I have received this many times and ususally I just go copy code from another page and change variables and get it to work. But I never have discovered what the error message is telling me and what I should be looking for. The line referrenced in the error message is always that last line of code above. Any information would be greatly appreciated such as: when that happens look for "this" or the parameter that the error message refers to are the _____parameters. Or just direction to a site that would tell me this stuff.
I am using Using Active Server Pages as my reference.

Thanks in advance.

Paul


Follow Up - Re: ODBC Error - Pete 3/8/1999 5:50:19 AM


 

   Active Server Pages Rule The World
Contact Us  
All artwork, design & content contained in this site are Copyright © 1998 - 2025 PowerASP.com and Christopher J. Williams
Banner ads ,other site logos, etc are copyright of their respective companies.
STATS Unless otherwise noted - All Rights Reserved.

vbscript active server pages ASP vbscript SQL database informix oracle SQL Server Perl CGI Delphi PHP source code code sample samples program CJWSoft ASPProtect ASPBanner ASPClassifieds www.aspclassifieds.com, www.powerasp.com,www.cjwsoft.com,www.aspphotogallery.com,www.codewanker.com,www.aspprotect.com,www.aspbanner.com