Wrox Programmer Forums
Go Back   Wrox Programmer Forums > .NET > Other .NET > Crystal Reports
|
Crystal Reports General discussion about Crystal Reports. For discussions specific to the book Professional Crystal Reports for VS.NET, please see the book discussion forum for that book.
Welcome to the p2p.wrox.com Forums.

You are currently viewing the Crystal Reports 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 November 30th, 2006, 02:14 PM
Authorized User
 
Join Date: Sep 2006
Posts: 12
Thanks: 0
Thanked 0 Times in 0 Posts
Default How to supress a report, If qry results = 0??

Hello to everyone out there on this rainy day in Detroit,

I need help in suppressing a report from printing or previewing in print preview mode if there are zero records in the query that the report is bound to. Right now, the report prints with #Error all over.

Does someone know how I can do that? What event I should act on or disable?

I was thinking on the report open event, check if the query's recordset is null then msgbox the user, then stop the report from going to print preview. But it's not working, well it's displaying the msgbox but I don't know how to disable the report from going to the report preview state.

Thanks for any help.

FJA

 
Old November 30th, 2006, 02:21 PM
Authorized User
 
Join Date: Sep 2006
Posts: 12
Thanks: 0
Thanked 0 Times in 0 Posts
Default

Please do not reply to this topic. I posted it in the wrong place, I meant to post it in the MS Access area. Pardon me.

FJA.






Similar Threads
Thread Thread Starter Forum Replies Last Post
How to supress a report, If qry results = 0?? fazzou Access 4 December 1st, 2006 02:41 PM
supress system (sqlserver) message starnet SQL Server 2000 1 July 28th, 2006 04:34 AM
supress pageheader of main report in subreport padma_eedara Crystal Reports 0 January 27th, 2006 09:07 AM
supress last value of a string kondapally Crystal Reports 0 December 16th, 2004 03:29 PM
Prb: COUNT qry result NOT SAME as SELECT qry savoym SQL Language 5 July 2nd, 2003 04:44 PM





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