473,473 Members | 1,577 Online
Bytes | Software Development & Data Engineering Community
Create Post

Home Posts Topics Members FAQ

Asp Error: Microsoft OLE DB Provider for ODBC Drivers (0x80040E10)

16 New Member
Please assist in this error i have provided the source code.

Microsoft OLE DB Provider for ODBC Drivers (0x80040E10)
[Microsoft][ODBC Microsoft Access Driver] Too few parameters. Expected 1.
Expand|Select|Wrap|Line Numbers
  1. <%
  2. Set objconn = Server.CreateObject("ADODB.Connection")
  3. objconn.ConnectionString = "DRIVER=Microsoft Access Driver (*.mdb);DBQ=" & Server.MapPath('mypath")
  4. objconn.Open
  5.  
  6. %>
  7. <%
  8. Dim qryDisplayRiskRef__MMColParam
  9. qryDisplayRiskRef__MMColParam = "1"
  10. If (Request.QueryString("RiskRef") <> "") Then 
  11.   qryDisplayRiskRef__MMColParam = Request.QueryString("RiskRef")
  12. End If
  13. %>
  14. <%
  15. Dim qryDisplayRiskRef
  16. Dim qryDisplayRiskRef_numRows
  17.  
  18. Set qryDisplayRiskRef = Server.CreateObject("ADODB.Recordset")
  19. qryDisplayRiskRef.ActiveConnection = objconn
  20. qryDisplayRiskRef.Source = "SELECT * FROM QueryDisplayFields WHERE RiskRef = '" + Replace(qryDisplayRiskRef__MMColParam, "'", "''") + "'"
  21. qryDisplayRiskRef.CursorType = 0
  22. qryDisplayRiskRef.CursorLocation = 2
  23. qryDisplayRiskRef.LockType = 1
  24. qryDisplayRiskRef.Open()
  25.  
  26. qryDisplayRiskRef_numRows = 0
  27. %>
Jul 3 '07 #1
0 2678

Sign in to post your reply or Sign up for a free account.

Similar topics

1
by: David Lozzi | last post by:
This happens a lot to my databases. I store them at the root of my developing files, i.e. c:\My Projects\Proj1\database.mdb. Randomly, the security settings on this database will drop to the basic...
6
by: Miranda | last post by:
Hello, could somebody please help me figure this error out. I'm at my wits end here. This is my connection & SQL statement: <%@Language="Javascript" %> <!--#include...
6
by: Oli | last post by:
Hi, Im trying to use a sesson statement within an SQL Statement: sql = "SELECT * FROM tblNumbers WHERE AllocatedTo=" & Session("Company") & "" And get the error: Error Type:
15
by: M P | last post by:
What does this mean? I am accessing an ASP page that queries Access Database thru fileDSN. I'm using IIS 5.0 Win2K SP4 Microsoft OLE DB Provider for ODBC Drivers error '80004005' General...
2
by: Maurizio Amoroso | last post by:
.... DTSRun: Executing... DTSRun OnStart: DTSStep_DTSExecuteSQLTask_1 DTSRun OnStart: DTSStep_DTSExecuteSQLTask_2 DTSRun OnStart: DTSStep_DTSExecuteSQLTask_4 DTSRun OnStart:...
5
by: jrefactors | last post by:
My machine is Windows XP with Oracle 9.2 Home; IIS and Oracle are in the same box. I have tried both Oracle OLEDB Provider and Microsoft ODBC For Oracle, but both not working. For Microsoft...
2
by: pericpero | last post by:
Hi There seem to be a number of posts already with this error message but none of them have helped me ... I am trying to execute some dynamic SQL from an ASP form to update or delete from a...
2
by: emvy681 | last post by:
I have a problem on programming, i am not that good but i can read and implement some programs. I just wanna ask help on this code Error Type: Microsoft OLE DB Provider for ODBC Drivers...
3
by: kokilatejas | last post by:
Executed as user: SYSTEM. DTSRun: Loading... DTSRun: Executing... DTSRun OnStart: Copy Data from dist_up.dbf to dbo.dist_up Step DTSRun OnError: Step, Error = -2147217865 (80040E37) ...
0
by: Hystou | last post by:
There are some requirements for setting up RAID: 1. The motherboard and BIOS support RAID configuration. 2. The motherboard has 2 or more available SATA protocol SSD/HDD slots (including MSATA, M.2...
0
marktang
by: marktang | last post by:
ONU (Optical Network Unit) is one of the key components for providing high-speed Internet services. Its primary function is to act as an endpoint device located at the user's premises. However,...
0
jinu1996
by: jinu1996 | last post by:
In today's digital age, having a compelling online presence is paramount for businesses aiming to thrive in a competitive landscape. At the heart of this digital strategy lies an intricately woven...
0
tracyyun
by: tracyyun | last post by:
Dear forum friends, With the development of smart home technology, a variety of wireless communication protocols have appeared on the market, such as Zigbee, Z-Wave, Wi-Fi, Bluetooth, etc. Each...
0
agi2029
by: agi2029 | last post by:
Let's talk about the concept of autonomous AI software engineers and no-code agents. These AIs are designed to manage the entire lifecycle of a software development project—planning, coding, testing,...
0
by: conductexam | last post by:
I have .net C# application in which I am extracting data from word file and save it in database particularly. To store word all data as it is I am converting the whole word file firstly in HTML and...
0
by: TSSRALBI | last post by:
Hello I'm a network technician in training and I need your help. I am currently learning how to create and manage the different types of VPNs and I have a question about LAN-to-LAN VPNs. The...
0
by: adsilva | last post by:
A Windows Forms form does not have the event Unload, like VB6. What one acts like?
0
by: 6302768590 | last post by:
Hai team i want code for transfer the data from one system to another through IP address by using C# our system has to for every 5mins then we have to update the data what the data is updated ...

By using Bytes.com and it's services, you agree to our Privacy Policy and Terms of Use.

To disable or enable advertisements and analytics tracking please visit the manage ads & tracking page.