How to check if no rows retrieve from command in crystal report?
preguntado el 28 de mayo de 14 a las 13:05
When do you want to "check" ?
"If you want to catch it in your form, you would need to have some code in the form perform the same query that the report will perform and see if there are any records returned before loading the report. Then you can show your message box and cancel before the report is loaded." - David Stratton (Original thread aquí)
Specifically in the report? See este artículo
It seems if you want to do this in the report itself you'll essentially be using the same method you would be in your program, by using a
Count() of the rows returned.
I think this would be somewhat similar to
HasData property in VBA.
Here is also another o fresa de hueso denso related to what you're asking.
¿Has probado algo?