473,326 Members | 2,438 Online
Bytes | Software Development & Data Engineering Community
Post Job

Home Posts Topics Members FAQ

Join Bytes to post your question to a community of 473,326 software developers and data experts.

Microsoft OLE DB Provider for ODBC Drivers error '80040e07'

1
Hi
Can someone help me. My error is :
Microsoft OLE DB Provider for ODBC Drivers error '80040e07'
[Microsoft][ODBC Microsoft Access Driver] Data type mismatch in criteria expression.
/add.asp, line 73

my codes are

Expand|Select|Wrap|Line Numbers
  1. <% dim DataCon, rsRec, strSql, strSql2, rsRec2
  2. set DataCon = server.createobject("ADODB.Connection")
  3. DataCon.ConnectionTimeout = 10
  4. DataCon.CommandTimeout = 30
  5. DataCon.Open "DBQ=" & Server.mapPath("booking.mdb") & "; Driver={Microsoft Access Driver (*.mdb)}; "
  6. Set rsRec = server.createobject("ADODB.recordset")
  7. rsRec.CursorType = 3
  8.  
  9.  
  10.  
  11. strSql = "SELECT fldDescription FROM tblTimeSlot WHERE fldSlotID =" & request.querystring("slot")
  12. rsRec.Open strSql, DataCon%>
Sep 20 '08 #1
2 5540
Laharl
849 Expert 512MB
You're in the wrong forum. Perhaps you meant the Access forum?
Sep 20 '08 #2
acoder
16,027 Expert Mod 8TB
I'm guessing this is an ASP question because of the code generating the query. If not, could a moderator move it to the correct forum.

Rheal, as well as posting in the most relevant forum, could you also ensure that code is posted using code tags. See How to ask a question. Thanks.

Moderator.
Sep 20 '08 #3

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

Similar topics

2
by: paul tomlinson | last post by:
Hi folks - i've got a windows 2000 server (SP3) i've run the IIS lockdown tool on it and set for dynamic websites - all the static pages within the site work ok but an ASP section has been put in...
2
by: Mark Sargent | last post by:
Hi All, what does the below error mean in plain English..? Cheers. Mark Sargent. Error Type: Microsoft OLE DB Provider for ODBC Drivers (0x80004005) General error Unable to open
7
by: BrianS | last post by:
I am receiving this error anytime I attempt to connect to a MS access DSN. Not clue what happened to trigger this suddenly. Any help is greatly appreciated.
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...
1
by: Albert | last post by:
Hi guys, it's nice to join the forum. Can someone can help me? After 2 years of using a program, i suddenly got this error. I tried re-installing SQL but im still getting the message. ...
1
by: Rajiv | last post by:
hi all , i m trying to coneect to a access database Using DSN dim rcon set rcon = server.CreateObject("ADODB.CONNECTION") rcon.mode = 1 ' adModeRead rcon.ConnectionString ="DSN=report" ...
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...
3
by: sajithkahawatta | last post by:
i use asp then i got error Microsoft OLE DB Provider for ODBC Drivers error '80040e4e' Operation was canceled. /dbconn.asp, line 5 the code of dbconn.asp is, <%
0
by: Genken | last post by:
Please assist in this error i have provided the source code. Microsoft OLE DB Provider for ODBC Drivers (0x80040E10) Too few parameters. Expected 1. <% Set objconn =...
0
by: DolphinDB | last post by:
Tired of spending countless mintues downsampling your data? Look no further! In this article, you’ll learn how to efficiently downsample 6.48 billion high-frequency records to 61 million...
0
by: ryjfgjl | last post by:
ExcelToDatabase: batch import excel into database automatically...
0
isladogs
by: isladogs | last post by:
The next Access Europe meeting will be on Wednesday 6 Mar 2024 starting at 18:00 UK time (6PM UTC) and finishing at about 19:15 (7.15PM). In this month's session, we are pleased to welcome back...
0
by: Vimpel783 | last post by:
Hello! Guys, I found this code on the Internet, but I need to modify it a little. It works well, the problem is this: Data is sent from only one cell, in this case B5, but it is necessary that data...
0
by: jfyes | last post by:
As a hardware engineer, after seeing that CEIWEI recently released a new tool for Modbus RTU Over TCP/UDP filtering and monitoring, I actively went to its official website to take a look. It turned...
0
by: ArrayDB | last post by:
The error message I've encountered is; ERROR:root:Error generating model response: exception: access violation writing 0x0000000000005140, which seems to be indicative of an access violation...
1
by: PapaRatzi | last post by:
Hello, I am teaching myself MS Access forms design and Visual Basic. I've created a table to capture a list of Top 30 singles and forms to capture new entries. The final step is a form (unbound)...
1
by: Defcon1945 | last post by:
I'm trying to learn Python using Pycharm but import shutil doesn't work
0
by: af34tf | last post by:
Hi Guys, I have a domain whose name is BytesLimited.com, and I want to sell it. Does anyone know about platforms that allow me to list my domain in auction for free. Thank you

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.