Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations wOOdy-Soft on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

I don't recognise this error

Status
Not open for further replies.

learning2fly

Programmer
Jan 10, 2001
12
GB
Hi,

For people who use ODBC a lot this will seem really obvious.

I am using Drumbeat 2000 to develop a website that uses an Access database. However at the moment when I try to load my page I get this ODBC error

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

[Microsoft][ODBC Microsoft Access 97 Driver] Data type mismatch in criteria expression.

/Generator/media/IIS_Gen_3.0_Recordset.js, line 361


Does anyone know what this means and how I can fix it?

Thanks

Gordon
 
Well DataType mis-match means that it expects, say a string and you are passing a number.

So I would look at the SQL statemnt and make sure you have a single quote around your parameters.

Select * From YourTable Where Yourfield = '" & somevalue & "';"

Dates need a # before and after
Also look at the "Cxxx" functions to convert from one datatype to another.
Example:
CInt converts to Integer.
CDbl to Double
etc.
There are 8-10 of these for everything imagineable
DougP, MCP

Visit my WEB site to see how Bar-codes can help you be more productive
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top