PC Review


Reply
Thread Tools Rate Thread

avoid listing empty fields in a record?

 
 
Greg
Guest
Posts: n/a
 
      6th Feb 2004
i have a table with just one field listed. with this,
some of my records are empty which of course leaves an
empty spot which is what i want. when i have the DB Wiz
displaying all this on a page, it leaves a space where
that record is empty. I want it to just list the records
with info in it and not the blank ones which leave a
gap. how do i do this? Thanks!
 
Reply With Quote
 
 
 
 
Kathleen Anderson [MVP - FP]
Guest
Posts: n/a
 
      6th Feb 2004
Greg:
Wrap the DatabaseResultColumn display area in a bit of script, like this:

<% If fp_rs("Municipality") > " " then %>

<li><b>Municipality:</b>&nbsp;<!--webbot bot="DatabaseResultColumn"
startspan

s-columnnames="ProgramArea,RecordNum,Date,ItemNumber,SplitItem,Session,PA_SA
,ActNumber,Section,Recipient,Municipality,FundsUse,DollarField1,DollarField2
,DollarField3,DollarField4,Any_Previous,DollarField5,FundNum,AgencyNum,SID,P
roject_Num,Description"
s-column="Municipality" b-tableformat="FALSE" b-hashtml="FALSE"
clientside
preview="&lt;font
size=&quot;-1&quot;&gt;&amp;lt;&amp;lt;&lt;/font&gt;Municipality&lt;font
size=&quot;-1&quot;&gt;&amp;gt;&amp;gt;&lt;/font&gt;" b-makelink
b-MenuFormat --><%=FP_FieldVal(fp_rs,"Municipality")%><!--webbot
bot="DatabaseResultColumn" i-CheckSum="33247" endspan --></li>

<% End If %>


--
~ Kathleen Anderson
Microsoft MVP - FrontPage
Spider Web Woman Designs
http://www.spiderwebwoman.com/resources/


Greg <(E-Mail Removed)> wrote:
> i have a table with just one field listed. with this,
> some of my records are empty which of course leaves an
> empty spot which is what i want. when i have the DB Wiz
> displaying all this on a page, it leaves a space where
> that record is empty. I want it to just list the records
> with info in it and not the blank ones which leave a
> gap. how do i do this? Thanks!



 
Reply With Quote
 
Jim Buyens
Guest
Posts: n/a
 
      6th Feb 2004
>-----Original Message-----
>i have a table with just one field listed. with this,
>some of my records are empty which of course leaves an
>empty spot which is what i want. when i have the DB Wiz
>displaying all this on a page, it leaves a space where
>that record is empty. I want it to just list the records
>with info in it and not the blank ones which leave a
>gap. how do i do this? Thanks!


Rerun the DRW and:

1. On page 3, click More Options.
2. Click Criteria.
3. Click Add.
4. Set Field Name to your field name.
5. Set Comparison to Not Null.
6. Click OK, OK, OK, Next, Next, Finish.
7. Save, then test using an http:// URL.

This should solve the problem if, in fact, your database
fields are truly empty. If they actually contain a zero-
length string or the number zero, you'll have to adjust
the comparison in step 5 accordingly.

Jim Buyens
Microsoft FrontPage MVP
http://www.interlacken.com
Author of:
*----------------------------------------------------
|\---------------------------------------------------
|| Microsoft Office FrontPage 2003 Inside Out
||---------------------------------------------------
|| Web Database Development Step by Step .NET Edition
|| Microsoft FrontPage Version 2002 Inside Out
|| Faster Smarter Beginning Programming
|| (All from Microsoft Press)
|/---------------------------------------------------
*----------------------------------------------------

 
Reply With Quote
 
 
 
Reply

Thread Tools
Rate This Thread
Rate This Thread:

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are Off


Similar Threads
Thread Thread Starter Forum Replies Last Post
Checking for, then listing Null/empty fields in a message box Mike Sabino Microsoft Access Forms 0 11th Nov 2009 07:26 PM
HELP - Last Fields Content on a New record of a Form are empty when I print ... Rui Oliveira Microsoft Access 1 13th Mar 2008 04:48 PM
A) 140 fields in a record -- OK ?? --- B) Do empty fields use disk space? MyEmailList@gmail.com Microsoft Access 6 16th Apr 2007 04:54 PM
Re: In Access, how do I display record yet omit empty fields? Rick Brandt Microsoft Access Queries 0 19th Dec 2006 04:02 PM
Avoid that Enter close record in memo fields =?Utf-8?B?RnJhbmsgTS4=?= Microsoft Access Forms 1 12th Mar 2004 09:58 AM


Features
 

Advertising
 

Newsgroups
 


All times are GMT +1. The time now is 11:37 PM.