This topic is locked

Error Message on Advanced Search

3/19/2005 7:55:08 PM
ASPRunnerPro General questions
jmisson author

Hi,
Thanks in advance.
I am getting the following error (see below error message for more info) when performing an Advanced search with Date as criteria (it also happens on normal search):
**
Technical information

Error number -2147467259

Error description SQLState: 22005

Native Error Code: -3030

[INTERSOLV][ODBC SequeLink driver][ACCESS][Microsoft][ODBC Microsoft Access Driver] Data type mismatch in criteria expression.
URL /tblEnquiry_list.asp

SQL query select [EnquiryID], [EnquiryDate], [AssignedConsultant], [Status], [LoanType], [LoanAmount], [Surname], [FirstName], [HomePhone], [Mobile], [Email], [CurrentSuburb], [Referral] From [tblEnquiry] where 1=1 and EnquiryDate>='03/03/2005' and EnquiryDate<='03/05/2005'

This error only occurs when I upload the database to the web, it works okay on my own computer.
All other search criteria work except for date.
I am presuming it is because the date is being imported in a text format rather than date format, but do not know how to change it.
I have tried input=date and validate
<td><input type="date" size=20 name=SearchFor validate=date></td>
but without success.
If anyone could assist, that would be great.
Regards
Julie

www.simply-access.com

Sergey Kornilov admin 3/23/2005

Hi,
please post connection string that can be found in include/..._dbconnection.asp file.
Do you use the same connection string on the web and on your own computer?