toconn.execute 使用的有关问题

toconn.execute 使用的问题1像这种形式iStatetoconn.execute( selectstatefromlistwhereinfo_id &orde

toconn.execute 使用的问题
1   像这种形式
iState   =   toconn.execute( "select   state   from   list   where   info_id= "&orderid)(0)
当select不到结果的话会出错
是不是只能select一次判断是否eof再取数据呢

2   像这种形式
toconn.execute( "update   list   set   name= ' "&sValue& " '   where   info_id= "&orderid)
也是同上的问题
这个怎么解决呢

[解决办法]
iState = toconn.execute( "select state from list where info_id= ' "&orderid& " ' ")
....
要有
do while not iState.eof
......