Wrox Programmer Forums
|
Classic ASP Basics For beginner programmers starting with "classic" ASP 3, pre-".NET." NOT for ASP.NET 1.0, 1.1, or 2.0
Welcome to the p2p.wrox.com Forums.

You are currently viewing the Classic ASP Basics section of the Wrox Programmer to Programmer discussions. This is a community of software programmers and website developers including Wrox book authors and readers. New member registration was closed in 2019. New posts were shut off and the site was archived into this static format as of October 1, 2020. If you require technical support for a Wrox book please contact http://hub.wiley.com
 
Old March 7th, 2005, 07:53 AM
Registered User
 
Join Date: Mar 2005
Posts: 1
Thanks: 0
Thanked 0 Times in 0 Posts
Send a message via MSN to Asif2005
Default Hide 0 value in a Report


Hi,
   i have made a report in access 2000.It contains some calculated numeric fields having default value 0.If somebody enters no data on that particular field it shows that particular field having 0 value.how can i hide the field contain 0 from the report Preview and also from the printing.

with exemple pls.?
 
Old March 7th, 2005, 06:21 PM
Friend of Wrox
 
Join Date: Jan 2004
Posts: 1,870
Thanks: 12
Thanked 20 Times in 20 Posts
Send a message via AIM to mat41
Default

This method assumes you have executed a query, the results are in the recordSet named rs and the field you talk about is the first element in the record set:

IF rs(0) > 0 then
   response.write rs(0)
ELSE
   'do nothing
END IF

Wind is your friend
Matt





Similar Threads
Thread Thread Starter Forum Replies Last Post
HIDE/SHOW pallone Javascript How-To 11 April 16th, 2007 10:24 AM
Hide Field ToolTip From Report MCSD Crystal Reports 0 January 24th, 2005 07:17 AM
Conditional Hide Report Page Header SGL Access VBA 0 August 30th, 2004 02:36 PM
hide some unwanted data in report Subho Access VBA 6 December 12th, 2003 03:11 AM
How to Hide Folder in C# manoj241176 VS.NET 2002/2003 0 July 29th, 2003 04:10 AM





Powered by vBulletin®
Copyright ©2000 - 2020, Jelsoft Enterprises Ltd.
Copyright (c) 2020 John Wiley & Sons, Inc.