Contact US

Log In

Come Join Us!

Are you a
Computer / IT professional?
Join Tek-Tips Forums!
  • Talk With Other Members
  • Be Notified Of Responses
    To Your Posts
  • Keyword Search
  • One-Click Access To Your
    Favorite Forums
  • Automated Signatures
    On Your Posts
  • Best Of All, It's Free!

*Tek-Tips's functionality depends on members receiving e-mail. By joining you are opting in to receive e-mail.

Posting Guidelines

Promoting, selling, recruiting, coursework and thesis posting is forbidden.

Students Click Here

keep getting error 80040e07

keep getting error 80040e07

keep getting error 80040e07

I can't seem to figure out what I am doing wrong. I keep getting the error message

"Microsoft OLE DB Provider for ODBC Drivers error '80040e07'
[Microsoft][ODBC Microsoft Access Driver] Data type mismatch in criteria expression.
/leghistres1.asp, line 48"

The query I am using is:

SELECT DISTINCTROW publicact1999.PublicAct, publicact1999.Bill, [99HTRIN].[House Pages], [99seni].[Senate Pages], combo.[Page Numbers], publicact1999.Bill  FROM ((publicact1999 LEFT JOIN 99HTRIN ON publicact1999.Bill = [99HTRIN].Bill) LEFT JOIN 99seni ON [99HTRIN].Bill = [99seni].Bill) LEFT JOIN combo ON [99seni].Bill = combo.Bill  WHERE ('searchpa'='" & Request.QueryString("[by]") & "') AND (publicact1999.PublicAct='" & Request.QueryString("[search]") & "') OR ('searchbill'='" & Request.QueryString("[by]") & "') AND (publicact1999.Bill='" & Request.QueryString("[search]") & "')"

I think that the problem problem is in the AND (publicact1999.Bill='" & Request.QueryString("[search]") & "').

The actual search page is at: http://www.cslib.org/leghist.asp

Anyone have any idea?


RE: keep getting error 80040e07

If the query you posted is the actual query being sent to SQL Server, the problem is that SQL Server has no way to interpret the value of Request.QueryString("[by]") and Request.QueryString("[search]"). Those value must be resolved on your page before executing the query.


"Life would be easier if I had the source code." -Anonymous

Red Flag This Post

Please let us know here why this post is inappropriate. Reasons such as off-topic, duplicates, flames, illegal, vulgar, or students posting their homework.

Red Flag Submitted

Thank you for helping keep Tek-Tips Forums free from inappropriate posts.
The Tek-Tips staff will check this out and take appropriate action.

Reply To This Thread

Posting in the Tek-Tips forums is a member-only feature.

Click Here to join Tek-Tips and talk with other members! Already a Member? Login

Close Box

Join Tek-Tips® Today!

Join your peers on the Internet's largest technical computer professional community.
It's easy to join and it's free.

Here's Why Members Love Tek-Tips Forums:

Register now while it's still free!

Already a member? Close this window and log in.

Join Us             Close