Click here to Skip to main content
16,004,564 members
Please Sign up or sign in to vote.
3.00/5 (1 vote)
See more:
can u please tell me what is the mistake i have made here.
Iam unable to find out,iam getting an error.

SELECT description from [GTK_Casestudy] WHERE casestudy_id=[@txtcaseid]

Here iam actually trying to display the description coloumn based on the casestudy_id which i have entered in a textbox whose id is txtcaseid.
Posted
Comments
thatraja 20-Sep-10 7:57am    
hi, always post the error details if you get anything with code, so that you can get the solution quickly

What error are you getting?

If casestudy_id is a numeric field, you need to convert txtcaseid into a number.
 
Share this answer
 
I Think
casestudy_id=[@txtcaseid]
in that you have used Square Bracket may have some problem with the value.

Try once by removing Square Bracket and Pass the Parameter value.
 
Share this answer
 

This content, along with any associated source code and files, is licensed under The Code Project Open License (CPOL)



CodeProject, 20 Bay Street, 11th Floor Toronto, Ontario, Canada M5J 2N8 +1 (416) 849-8900