A few ways come to mind, both of which would avoid the problem with the solution that LindaC proposed (false positive if the SP only returned one row). I haven't tested any of these, so free advice is worth what you pay for it...<br>
IF Crystal treats the empty result set of a SP as a record containing null values for all rows (I don't know if it does), then you could do a test for null in a column where you knew you wouldn't get nulls in any other circumstance.<br>
<br>
Another way is to do a count of the rows that will be returned by the SP (in the SP itself), and if the count is zero, produce a row that matches the column structure of the SP, but contains an error flag that you can use to generate a message. Depending on the SP, this could be expensive.<br>
<br>
Lastly, create a formula field in CR that generates an error message, and place it in the Page Header (which prints even when no rows are returned).<br>
<br>
StringVar MyErrorMessage ;<br>
MyErrorMessage := "Error message text here" ;<br>
If RecordNumber = 1 then MyErrorMessage := ""<br>
Else MyErrorMessage<br>
<p>Malcolm Wynden<br><a href=mailto:wynden@island.dot.net>wynden@island.dot.net</a><br><a href= > </a><br>