| Subject: | Re: how to search smalldatetime field with a querystring value? ASP/SQL |
|---|---|
| From: | Dooza <doozadooza@xxxxxxxxx> |
| Date: | Thu, 31 Jul 2008 15:21:19 +0100 |
| Newsgroups: | macromedia.dreamweaver.appdev |
tradmusic.com wrote: I'm passing the following date, via a querystring, to a page that has a recordset containing a smalldatetime field:A querystring is a string value, you need to convert it to a date value before the recordset will accept it. Maybe CDATE will do it: http://www.w3schools.com/VBscript/func_cdate.asppage.asp?eventdatetime=2008-09-26Problem is, the recordset is either producing no results, despite there being events in the table, on that date. If I change the querystring to any of the following:dd-mm-yyyy dd/mm/yyyy yyyy/mm/dd I get an error about data type mismatch.I know this is something silly...can anyone tell me what I'm doing wrong? Thank you.Regards Nath. Steve |
| <Prev in Thread] | Current Thread | [Next in Thread> |
|---|---|---|
| ||
| Previous by Date: | Re: Dropdown Menu Search, tradmusic.com |
|---|---|
| Next by Date: | Re: MySQL Error# : 2002 in Dreamweaver CS3, chunkeung |
| Previous by Thread: | how to search smalldatetime field with a querystring value? ASP/SQL, tradmusic.com |
| Next by Thread: | Re: how to search smalldatetime field with a querystring value? ASP/SQL, tradmusic.com |
| Indexes: | [Date] [Thread] [Top] [All Lists] |