<%
postit = request.querystring(\"thispost\")
response.write(postit)
%>
postit
is the v
You're not passing the value of postit
to Access; instead, you're telling Access to find & use a variable called postit
. Of course, said variable doesn't exist in Access -- it only exists in your code. The fix is just a couple of quote marks and a pair of ampersands.
delCmd.CommandText="DELETE * FROM post WHERE (pos_ID = " & postit & " )"
(Naturally, you should validate postit
before you go sending it off to your database. A simple CDbl()
can do the trick, assuming it's a numeric value.)