Format the date accordingly then, YYYY-MM-DD. See here:
http://www.aspfaq.com/show.asp?id=2023
Sample:
Function dtForAccess(d)
dtForAccess = Year(d) & "-" & Right("0" & Month(d), 2) & "-" & Right("0"
& Day(d), 2)
End Function
Ray at work
"supasnail" <> wrote in message
news: oups.com...
> sorry, its an access database .mdb
>
> S
>
>
>
>
>
> Ray Costanzo [MVP] wrote:
>> Please tell us what kind of database you're using.
>>
>> Ray at work
>>
>> "supasnail" <> wrote in message
>> news: oups.com...
>> > 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
>> >
>