请教怎么取出数据库中的值进行比较1

请问如何取出数据库中的值进行比较1~
请问如何取出数据库中的值和文本框textbox11.text中的值进行比较1~我用的Access数据库,我想比较rkhh字段和textbox11.text进行比较.
if   ????   then
    messagebox.show( "库中有该物品 ")
else
    messagebox.show( "库中无该物品 ")
end   if
主要是如何从数据库中取出这个值!~~~

------解决方案--------------------
dim cmd as oledbcommand
cmd =new oledbcommand ( "select rkhh from 表 where 条件 ",conn)
dim str as string
conn.open()
str=cmd.executescale()
if str=textbox11.text then

*****************************************************************************
欢迎使用****论坛专用阅读器 : **** Reader(附全部源代码)

最新版本:20070212

http://www.cnblogs.com/feiyun0112/archive/2006/09/20/509783.html