Solved

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

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

Highfive Gives IT Their Time Back

Highfive is so simple that setting up every meeting room takes just minutes and every employee will be able to start or join a call from any room with ease. Never be called into a meeting just to get it started again. This is how video conferencing should work!

Join & Write a Comment

I have helped a lot of people on EE with their coding sources and have enjoyed near about every minute of it. Sometimes it can get a little tedious but it is always a challenge and the one thing that I always say is:  The Exchange of information …
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/…
Access reports are powerful and flexible. Learn how to create a query and then a grouped report using the wizard. Modify the report design after the wizard is done to make it look better. There will be another video to explain how to put the final p…
This video shows how to remove a single email address from the Outlook 2010 Auto Suggestion memory. NOTE: For Outlook 2016 and 2013 perform the exact same steps. Open a new email: Click the New email button in Outlook. Start typing the address: …

760 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

Need Help in Real-Time?

Connect with top rated Experts

20 Experts available now in Live!

Get 1:1 Help Now