Why do you need to pass in the date from ASP? Access knows the date.
conn.Execute "DELETE Bmemo WHERE tDate <= Date()"
As Randy pointed out, if you're passing the date from outside the database,
you need to delimit it correctly.
conn.Execute "DELETE Bmemo WHERE tDate <= #" & Date() & "#"
I might even go so far as to suggest putting the date in an ISO format, e.g.
yyyy-mm-dd, to avoid ambiguity.
"xool" <me@memail.net> wrote in message
news:eZ**************@TK2MSFTNGP12.phx.gbl...
Hi i'm getting a type mismatch error, anyone tell me why pls?
conn.Execute "DELETE FROM Bmemo WHERE (tDate <= '" & date() & "')"
tDate is a date field in an Access database....
Many thanks
---
Outgoing mail is certified Virus Free.
Checked by AVG anti-virus system (http://www.grisoft.com).
Version: 6.0.516 / Virus Database: 313 - Release Date: 01/09/2003