vbLearner Level: Graduate
 Registered: 21-04-2006 Posts: 13
|
sql server 2000 stmt error
Hi guys!
I am using my Sql server 2000
TABLE:TBLPRODINFO
PRODCODE:CHAR(25)
DESCRIPTION:CHAR(25)
PRICE:NUMERIC(9)
note:
the data prodcode entered/stored is not on the exact fields size
prodcode description price
-------------------------------------------------------------
hp01 hewlett packard printer 2500
epson epson stylus c43 3500
I Want to get the corresponding value of its price with my inputted prodcode by using these code:
txtprodcode.text=hp01
| select * from tblprodinfo where prodcode='"& txtprodcode.text &"'" |
but it returns zero in value even it has, he can't find any data, but in ms access it can..
Anybody can help me...
thanks guys
|