Thanks, DateAdd seems to be the correct function
Dim str_rangedate
dim str_vardate
str_vardate = rs(registration_date)
str_rangedate = dateadd("d",-180, now())
if str_vardate >= str_rangedate then
...
The above code makes str_range date 180's ago according to "response.write str_rangedate"
But the if statement seems to include every record? if I switch around the >= to <= it still doesn't work as expected. I'm not a programmer, whats wrong with my code?
Thanks