954,600 Members — Technology Publication meets Social Media
Username:
Password:
Lost login information?
Have something to say? Contribute New Article Reply to this Article

Script error in asp

hello
I want to deleter record from my table in database but there is error which is Data type mismatch in criteria expression ,any one has any idea can tell me thank you.

aalqa
Newbie Poster
9 posts since Jul 2010
Reputation Points: 10
Solved Threads: 0
 

You should post the code for us to see, but I would guess that because you are deleting a row that is identified by ID that you may only have to change the parenthesis, so instead of using

where ID = "' & strID & '"

try using

where ID = ' & strID & '
ArtistScope
Junior Poster
150 posts since Jun 2010
Reputation Points: 5
Solved Threads: 14
 

Thank you , I get the solution and the solution is near to your solution

WHERE PatientId='" & pid & "'",conn
  %>

the solution was

"SELECT * FROM Patient WHERE PatientId=" & pid,conn
  %>
aalqa
Newbie Poster
9 posts since Jul 2010
Reputation Points: 10
Solved Threads: 0
 

This article has been dead for over three months

Post: Markdown Syntax: Formatting Help
You