Forums

This topic is locked

Show region if field is not empty?

Posted 09 Oct 2001 23:12:14
1
has voted
09 Oct 2001 23:12:14 bkripper brian posted:
I know the show region behavior will display a region if a record is full but is there anyway to display it only if a certain FIELD is full?

Tanks mang!

Brian

Replies

Replied 10 Oct 2001 00:40:56
10 Oct 2001 00:40:56 Owen Eastwick replied:
Try something like this:

<pre id=code><font face=courier size=2 id=code>
&lt;% If (RecordsetName.Fields.Item("FieldName1".Value) &lt;&gt; "" Then %&gt;
&lt;table width="500" border="1"&gt;
&lt;tr&gt;
&lt;td&gt;&lt;%=(RecordsetName.Fields.Item("FieldName1".Value)%&gt;&lt;/td&gt;
&lt;td&gt;&lt;%=(RecordsetName.Fields.Item("FieldName2".Value)%&gt;&lt;/td&gt;
&lt;td&gt;&lt;%=(RecordsetName.Fields.Item("FieldName3".Value)%&gt;&lt;/td&gt;
&lt;/tr&gt;
&lt;/table&gt;
&lt;% End If %&gt;
</font id=code></pre id=code>

Regards

Owen.

Multiple Parameter UD4 / Access 2000 Database Search Tutorial:
www.tdsf.co.uk/tdsfdemo
Replied 10 Oct 2001 09:43:06
10 Oct 2001 09:43:06 Viktor Farcic replied:
I prefer doing this by hand (like oeastwick explained) but you can also use Conditional Region server behavior.

Reply to this topic