S
supasnail
I've been going round in circles here trying to get this to work and my
ignorance of ASP is now showing me up.
I want to construct a query string to allow me to filter entries to be
displayed on a web page with respect to the date-entry contained in the
database.
i.e. an archived results page will show all entries where "my_date" is
less than 'todays date'
I have tried to do this by;
Dim strSQL
Dim showdate
showdate = Date
then...
strSQL = "Select * FROM my_database WHERE my_date <" & showdate
Although this does give a result, it has no actual bearing on todays
date and wondered what strinkingly obvious this I'm doing wrong? when I
use > i get all results displayed, when i use < I get none at all.
thanks for any help
ignorance of ASP is now showing me up.
I want to construct a query string to allow me to filter entries to be
displayed on a web page with respect to the date-entry contained in the
database.
i.e. an archived results page will show all entries where "my_date" is
less than 'todays date'
I have tried to do this by;
Dim strSQL
Dim showdate
showdate = Date
then...
strSQL = "Select * FROM my_database WHERE my_date <" & showdate
Although this does give a result, it has no actual bearing on todays
date and wondered what strinkingly obvious this I'm doing wrong? when I
use > i get all results displayed, when i use < I get none at all.
thanks for any help