ASP Development
 
Forums: » Register « |  User CP |  Games |  Calendar |  Members |  FAQs |  Sitemap |  Support | 
 
 
User Name:
Password:
Remember me
Go Back   ASP Free ForumsProgrammingASP Development

Reply
Add This Thread To:
  Del.icio.us   Digg   Google   Spurl   Blink   Furl   Simpy   Y! MyWeb 
Thread Tools Search this Thread Rate Thread Display Modes
 
Unread ASP Free Forums Sponsor:
  #1  
Old February 24th, 2000, 12:26 PM
Steve Schofield Steve Schofield is offline
Contributing User
ASP Free God 20th Plane (14500 - 14999 posts)
 
Join Date: Dec 2002
Posts: 14,575 Steve Schofield User rank is Corporal (100 - 500 Reputation Level)Steve Schofield User rank is Corporal (100 - 500 Reputation Level)Steve Schofield User rank is Corporal (100 - 500 Reputation Level)Steve Schofield User rank is Corporal (100 - 500 Reputation Level) 
Time spent in forums: < 1 sec
Reputation Power: 22
error on ADO query to Access database

<i><b>Originally posted by : Kirk (kirk@zebraenv.com)</b></i><br /><br />I'm very frustrated. I'm trying to run the following query:<br /><br /><%<br />Response.Write strid&"<br>"<br />strquery="SELECT clientcompany.name as Company, clientcompany.id, clientoffice.*, clientcontact.* "<br />strquery = strquery & "FROM clientcompany, clientcontact, clientoffice "<br />strquery = strquery & "WHERE clientcontact.office_id = " & strid<br />strquery = strquery & " AND clientcompany.id = "<br />strquery = strquery & "(SELECT clientoffice.clientcompany_id "<br />strquery = strquery & "FROM clientoffice "<br />strquery = strquery & "WHERE clientoffice.id = " & strid & ")"<br />Response.Write strquery & "<br><br>"<br />set objRS = objConn.execute(strquery)%><br /><br />All I keep getting is the following error:<br /><br />Microsoft OLE DB Provider for ODBC Drivers error '80040e10' <br /><br />[Microsoft][ODBC Microsoft Access Driver] Too few parameters. Expected 1. <br /><br />/office.asp, line 19 <br /><br />Line 19 is my execute statement<br />Please help!!!! I'm floundering!<br />Thanks.<br /><br /><br />

Reply With Quote
  #2  
Old February 25th, 2000, 12:41 AM
Steve Schofield Steve Schofield is offline
Contributing User
ASP Free God 20th Plane (14500 - 14999 posts)
 
Join Date: Dec 2002
Posts: 14,575 Steve Schofield User rank is Corporal (100 - 500 Reputation Level)Steve Schofield User rank is Corporal (100 - 500 Reputation Level)Steve Schofield User rank is Corporal (100 - 500 Reputation Level)Steve Schofield User rank is Corporal (100 - 500 Reputation Level) 
Time spent in forums: < 1 sec
Reputation Power: 22
<i><b>Originally posted by : steve schofield (sschofield@aspfree.com)</b></i><br />debugging sql statements stink! even a seasoned programmer runs into this. One thing i found was before your conn.execute do a response.write strsql. this statement will print out in the page. It'll still error but then copy and paste the sql statement into your access query window and then debug from there. <br /><br />http://www.asptoday.com/default.asp?art=19990721.htm <br /><br />here is an article i did on asptoday about this<br /><br />steve<br /><br /><br /><br /><br />------------<br />Kirk at 2/24/2000 10:26:30 AM<br /><br /><br />I'm very frustrated. I'm trying to run the following query:<br /><br /><%<br />Response.Write strid&"<br>"<br />strquery="SELECT clientcompany.name as Company, clientcompany.id, clientoffice.*, clientcontact.* "<br />strquery = strquery & "FROM clientcompany, clientcontact, clientoffice "<br />strquery = strquery & "WHERE clientcontact.office_id = " & strid<br />strquery = strquery & " AND clientcompany.id = "<br />strquery = strquery & "(SELECT clientoffice.clientcompany_id "<br />strquery = strquery & "FROM clientoffice "<br />strquery = strquery & "WHERE clientoffice.id = " & strid & ")"<br />Response.Write strquery & "<br><br>"<br />set objRS = objConn.execute(strquery)%><br /><br />All I keep getting is the following error:<br /><br />Microsoft OLE DB Provider for ODBC Drivers error '80040e10' <br /><br />[Microsoft][ODBC Microsoft Access Driver] Too few parameters. Expected 1. <br /><br />/office.asp, line 19 <br /><br />Line 19 is my execute statement<br />Please help!!!! I'm floundering!<br />Thanks.<br /><br /><br />

Reply With Quote
Reply

Viewing: ASP Free ForumsProgrammingASP Development > error on ADO query to Access database


Thread Tools  Search this Thread 
Search this Thread:

Advanced Search
Display Modes  Rate This Thread 
Rate This Thread:


Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

vB code is On
Smilies are On
[IMG] code is On
HTML code is Off
View Your Warnings | New Posts | Latest News | Latest Threads | Shoutbox
Forum Jump


Forums: » Register « |  User CP |  Games |  Calendar |  Members |  FAQs |  Sitemap |  Support | 
  
 





© 2003-2008 by Developer Shed. All rights reserved. DS Cluster 2 hosted by Hostway
Stay green...Green IT