Solved

Microsoft OLE DB Provider for ODBC Drivers (0x80040E10) error message

Posted on 2006-07-21
3
578 Views
Last Modified: 2011-09-20
I am trying to implement the following code...

<%
'Dimension variables
Dim adoCon          'Holds the Database Connection Object
Dim rsRegistrant    'Holds the recordset for the records in the database
Dim strSQL           'Holds the SQL query for the database
Dim count
Dim pstring

'Create an ADO connection object
Set adoCon = Server.CreateObject("ADODB.Connection")

'Set an active connection to the Connection object using DSN connection
adoCon.Open "DSN=wnyacccTRD"

'Create an ADO recordset object
Set rsRegistrant= Server.CreateObject("ADODB.Recordset")

'Initialise the strSQL variable with an SQL statement to query the database
strSQL = "SELECT * FROM Contacts order by organization"

'Open the recordset with the SQL query
rsRegistrant.Open strSQL, adoCon
%>

and I get the following output.

Error Type:
Microsoft OLE DB Provider for ODBC Drivers (0x80040E10)
[Microsoft][ODBC Microsoft Access Driver] Too few parameters. Expected 1.
/cdc/wnyaccc_trd/registrationAdmin.asp, line 22

line 22 is:
rsRegistrant.Open strSQL, adoCon

I have implemented the above code many times before without any problem and I have no idea why it isn't working now. Any feedback will be appreciated. Thanks!
0
Comment
Question by:aumandg
[X]
Welcome to Experts Exchange

Add your voice to the tech community where 5M+ people just like you are talking about what matters.

  • Help others & share knowledge
  • Earn cash & points
  • Learn & ask questions
  • 2
3 Comments
 
LVL 26

Accepted Solution

by:
DireOrbAnt earned 500 total points
ID: 17157979
Make sure you have a column named organization in the table Contacts
0
 

Author Comment

by:aumandg
ID: 17158004
bless you kind sir.
0
 
LVL 26

Expert Comment

by:DireOrbAnt
ID: 17158059
:)
0

Featured Post

Technology Partners: We Want Your Opinion!

We value your feedback.

Take our survey and automatically be enter to win anyone of the following:
Yeti Cooler, Amazon eGift Card, and Movie eGift Card!

Question has a verified solution.

If you are experiencing a similar issue, please ask a related question

Have you ever needed to get an ASP script to wait for a while? I have, just to let something else happen. Or in my case, to allow other stuff to happen while I was murdering my MySQL database with an update. The Original Issue This was written…
This demonstration started out as a follow up to some recently posted questions on the subject of logging in: http://www.experts-exchange.com/Programming/Languages/Scripting/JavaScript/Q_28634665.html and http://www.experts-exchange.com/Programming/…
In this video, viewers will be given step by step instructions on adjusting mouse, pointer and cursor visibility in Microsoft Windows 10. The video seeks to educate those who are struggling with the new Windows 10 Graphical User Interface. Change Cu…
Monitoring a network: how to monitor network services and why? Michael Kulchisky, MCSE, MCSA, MCP, VTSP, VSP, CCSP outlines the philosophy behind service monitoring and why a handshake validation is critical in network monitoring. Software utilized …

631 members asked questions and received personalized solutions in the past 7 days.

Join the community of 500,000 technology professionals and ask your questions.

Join & Ask a Question