Wrox Programmer Forums
|
BOOK: Professional SQL Server Reporting Services ISBN: 0-7645-6878-7
This is the forum to discuss the Wrox book Professional SQL ServerReporting Services by Paul Turley, Todd Bryant, James Counihan, George McKee, Dave DuVarney; ISBN: 9780764568787
Welcome to the p2p.wrox.com Forums.

You are currently viewing the BOOK: Professional SQL Server Reporting Services ISBN: 0-7645-6878-7 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 June 28th, 2004, 03:20 PM
Authorized User
 
Join Date: Jun 2004
Posts: 50
Thanks: 0
Thanked 0 Times in 0 Posts
Default Wrap Up feature (like Word Mail Merge)

I have a report that I am trying to format. It looks something like this:

Title Version ID Complete Incomplete Total
Description


The report is a listing, it is a listing of surveys, it has the App Title, Version, App ID, Total Complete, Total Incomplete, Total (Complete + Incomplete)

In most instances no one bothered to put a description of the survey in however, where there is one I want it to show. Where there is not I want the report to ignore that line and move the next record up. (I don't want the extra space). Word and WordPerfect have a feature for doing this sort of thing in a merge (if Address line 2 does't exist don't leave a blank space, put the city).

I tried this using a table with two rows, it didn't wrap up automatically and I can't find a setting.

I also tried using a list object with text fields, it didn't wrap up by default and I can't see a setting anywhere.

I am sure this can be done. I just can't see it. (I think I also read someone else's post somewhere with the same issue... think I can find it again? NOT!).

******************

I am re-posting. I figured it out!

I used the version of the report with a table. I clicked on the form, selected properties, code(the tab) and added this code:

Public Function fnShowHideDescription(Value as string) as boolean
    if (trim(value) = "") then
        return True
     else
        return False
    end if
End Function

I clicked to row (designator?? button to the left of the row in the designer.) Selected Visibility. Then selected the entry called Hidden. I added this code instead of true or false:

=Code.fnShowHideDescription(Fields!AppDescription. Value)


The report now shows or hides the row as needed.
__________________
Sandy Murdock MCP





Similar Threads
Thread Thread Starter Forum Replies Last Post
Mail Merge with MS Word bezaman Classic ASP Basics 1 October 6th, 2005 04:13 PM
Access/Vba mail merge to word help alfonse Access VBA 0 July 28th, 2005 05:11 AM
Access to Word Mail Merge Automation kareltje Access VBA 6 June 9th, 2005 04:54 AM
Word E-Mail Merge using Access Tables Richard Lally Access 2 February 7th, 2005 04:48 AM
(Semi) Automating Mail merge to Word Cryolith Access VBA 0 July 6th, 2003 10:35 AM





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