Level Extreme platform
Subscription
Corporate profile
Products & Services
Support
Legal
Français
Keep the report open without any record returned!
Message
General information
Forum:
Visual FoxPro
Category:
Reports & Report designer
Miscellaneous
Thread ID:
00352954
Message ID:
00352974
Views:
16
Diane,

Do you really want the user to see an empty report? Or just to have them notified that there ARE no records? I always use a cursor containing just the records for the report (instead of a filtered table) and I can check _tally after the SELECT runs. If _tally = 0, then I put up a messagebox stating that no records were found. If _tally > 0 then the report runs.

If for some reason you REALLY want an empty report visible (clients sometimes demand strange things....), you'll probably have to add an empty record to your report cursor. This will mean you have to make it a read/write cursor before appending a record.

HTH
Barbara

>Hello all,
>
> My question is how to get into the report when there is no record to be returned. When I preview the report, it flashs very fast then closes without any performance.
> Is there any way that I can display a message which notices that there is no record there, or keep the report open even all fields are blank?
> Any susgession would be appreciated!
> Diane.
Barbara Paltiel, Paltiel Inc.
Previous
Next
Reply
Map
View

Click here to load this message in the networking platform