Home General
New Blog Posts: Merging Reports - Part 1 and Part 2

Empty SQL result

edited December 2012 in General
Hi guys,
I've got a requirement, that when the sql statement returns no values, a
text should be generate in the report, that say, that the report is empty.

My question is, how can I find out, if the sql is empty?

Regards,

David Wolf

Comments

  • edited December 2012
    Hi David,

    You can use the Report.NoDataBehaviors property to define what happens
    when no data is returned from your connected dataset. You will want to
    use the ndBlankReport and ndMessageOnPage options.

    See the topic in the RB help for this property for more information as
    well as the topic on the Report.OnNoData event.

    Best Regards,

    Nico Cizik
    Digital Metaphors
    http://www.digital-metaphors.com
This discussion has been closed.