Hello, I am using ASP with IIS 5. I have a really weird date related bug with an Access 97 database.
From a form I build a recordset based on my SQL string based on the users form selections. I detect and build my SQL statment based on the field type.
For instance, if I select "ReceivedDate" from my combo my code knows this is a date field and builds the SQL using the appropriate syntax (#). Example:
sSQL = "SELECT * FROM Requests WHERE " & sSearchField & " = #" & sSearchString & "#"
The above works when entering a valid date. If I enter giberish (anything not a date) my code blows up eventually timingout the page. In my ErrorTrap routines either I am getting an Err.Number = 0 or nothing at all.
I am so baffled why I cannot trap for the error in my ASP and handle it.
My DB Connection works but it seems I cannot build the Recordset for the SQL (oRS.Open sSQL, oConn)
What do ya think - do you have a clue???
Thanks for your time,
Michael
From a form I build a recordset based on my SQL string based on the users form selections. I detect and build my SQL statment based on the field type.
For instance, if I select "ReceivedDate" from my combo my code knows this is a date field and builds the SQL using the appropriate syntax (#). Example:
sSQL = "SELECT * FROM Requests WHERE " & sSearchField & " = #" & sSearchString & "#"
The above works when entering a valid date. If I enter giberish (anything not a date) my code blows up eventually timingout the page. In my ErrorTrap routines either I am getting an Err.Number = 0 or nothing at all.
I am so baffled why I cannot trap for the error in my ASP and handle it.
My DB Connection works but it seems I cannot build the Recordset for the SQL (oRS.Open sSQL, oConn)
What do ya think - do you have a clue???
Thanks for your time,
Michael