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
Solved

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

Posted on 2006-07-21
3
571 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
  • 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

Networking for the Cloud Era

Join Microsoft and Riverbed for a discussion and demonstration of enhancements to SteelConnect:
-One-click orchestration and cloud connectivity in Azure environments
-Tight integration of SD-WAN and WAN optimization capabilities
-Scalability and resiliency equal to a data center

Question has a verified solution.

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

Suggested Solutions

Title # Comments Views Activity
Forcing form refresh - classic ASP 7 73
Error in query expression 3 48
Javascript to allow login/password authorization 4 51
Html CheckBox obtain Its Value 5 28
I would like to start this tip/trick by saying Thank You, to all who said that this could not be done, as it forced me to make sure that it could be accomplished. :) To start, I want to make sure everyone understands the importance of utilizing p…
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/…
With Secure Portal Encryption, the recipient is sent a link to their email address directing them to the email laundry delivery page. From there, the recipient will be required to enter a user name and password to enter the page. Once the recipient …

829 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