time format in VB6 not compare
<p>I have this condition in VB6 :</p>

<pre><code>If ((Time &gt;= #12:20:00 PM# And Time &lt;= #3:00:00 PM# And boolTarde = False)
</code></pre>

<p>I want to change this fixed values  (<code>#12:20:00 PM#</code> and  <code>#3:00:00 PM#</code>) by variables. 
I have loaded the values <code>"12:20:00"</code> and   <code>"03:00:00"</code> in the string variables <code>InitAmanha</code> and <code>FimAmanha</code> , hence I have written a new condition: </p>

<pre><code> If ((Time &gt;= InitAmanha And Time &lt;= FimAmanha And boolTarde = False)
   end if 
</code></pre>

<p>However, this doesn't compare anything. Is it necessary to concatenate the <code>'PM#'</code>?</p>