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>
<% If (RecordsetName.Fields.Item("FieldName1"
.Value) <> "" Then %>
<table width="500" border="1">
<tr>
<td><%=(RecordsetName.Fields.Item("FieldName1"
.Value)%></td>
<td><%=(RecordsetName.Fields.Item("FieldName2"
.Value)%></td>
<td><%=(RecordsetName.Fields.Item("FieldName3"
.Value)%></td>
</tr>
</table>
<% End If %>
</font id=code></pre id=code>
Regards
Owen.
Multiple Parameter UD4 / Access 2000 Database Search Tutorial:
www.tdsf.co.uk/tdsfdemo
  <pre id=code><font face=courier size=2 id=code>
<% If (RecordsetName.Fields.Item("FieldName1"
<table width="500" border="1">
<tr>
<td><%=(RecordsetName.Fields.Item("FieldName1"
<td><%=(RecordsetName.Fields.Item("FieldName2"
<td><%=(RecordsetName.Fields.Item("FieldName3"
</tr>
</table>
<% End If %>
</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.