<div>Hi all,</div>  <div>&nbsp;</div>  <div>I have&nbsp;difficulties on&nbsp;executing&nbsp;sql statement through cursor in QUICK. Below is my statement :</div>  <div>&nbsp;</div>  <div>let tmp_where_cnt = 0</div>  <div>let tmp_where = "where"</div>  <div>if tmp_a&nbsp;&lt;&gt; ""</div>  <div>then begin</div>  <div>&nbsp; let tmp_where = " name = '"+tmp_a+"'"</div>  <div>&nbsp; let tmp_where_cnt = 1</div>  <div>end</div>  <div>&nbsp;</div>  <div>if tmp_b &lt;&gt; ""</div>  <div>then begin</div>  <div>&nbsp; if tmp_where_cnt = 1</div>  <div>&nbsp; then&nbsp;let tmp_where = tmp_where + "and ic_no = '"+tmp_b+"'"</div>  <div>&nbsp; else&nbsp;let tmp_where = tmp_where + "ic_no = '"+tmp_b+"'"</div>  <div>end</div>  <div>&nbsp;</div>  <div>.....</div>  <div>&nbsp;</div>  <div>SQL OPEN&nbsp;"cursor_name" where ((tmp_where))<BR></div>  <div>----------------------------------------------</div>  <div>&nbsp;</div>  <div>I need to substitute the "WHERE" statement using the "tmp_where"
 field.</div>  <div>Can SQL statement in Powerhouse able to be substituted as above?</div>  <div>For your information, I'm running Powerhouse Web Version 8.4D1 under Windows platform using Axiant 3.4D1</div>  <div>&nbsp;</div>  <div>Thank You</div>  <div>&nbsp;</div>  <div>Regards</div>  <div>Kim Han</div>  <div>&nbsp;</div>  <div>&nbsp;</div><p>
                <hr size=1>Brings words and photos together (easily) with<br> 
<a href="http://us.rd.yahoo.com/mail_us/taglines/PMDEF3/*http://photomail.mail.yahoo.com">PhotoMail </a> - it's free and works with Yahoo! Mail.