If this is your first visit, be sure to check out the FAQ by clicking the link above. You may have to register before you can post: click the register link above to proceed. To start viewing messages, select the forum that you want to visit from the selection below.

 
Go Back  dBforums > Data Access, Manipulation & Batch Languages > ASP > How to avoid null datto display

Reply
 
LinkBack Thread Tools Search this Thread Display Modes
  #1 (permalink)  
Old 09-26-03, 14:10
vad vad is offline
Registered User
 
Join Date: Aug 2003
Posts: 160
How to avoid null datto display

Hi! I am new to asp

I have an access data base and I want to dispaly only fields in data base table that have data. I don't want to display null data.Can any one help me.

Thanks!
__________________
Vad
Reply With Quote
  #2 (permalink)  
Old 09-26-03, 14:19
rhs98 rhs98 is offline
Super Moderator
 
Join Date: Feb 2002
Location: Hampshire, UK
Posts: 441
Just have an if statement around the section that displays the data

i.e.
Code:
if x.field(1)<>"" then
 response.write(x.field(1))
end if
Reply With Quote
  #3 (permalink)  
Old 09-26-03, 15:07
vad vad is offline
Registered User
 
Join Date: Aug 2003
Posts: 160
how to avoid null data to display

Thank U

But here the problem is I want a table to display in the following format.


-------
Stock# l l GM857 ll Serial# ll 846128764 ll Trucktype ll general
Mileage l l 34000 ll Color ll blue ll Cruise ll no

In this case How is it possible.

I wrote the statement u told me,it is displaying nothing but it is showing empty space.I don't want that empty space also.

Thank U.
__________________
Vad
Reply With Quote
Reply

Thread Tools Search this Thread
Search this Thread:

Advanced Search
Display Modes

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 On