zab Posted August 18, 2010 Posted August 18, 2010 Hello everyone. I am creating a few production reports. All goes well as long as there is something to find in the search criteria. If there is no record available, my report shows a blank page in preview mode, but a normal page with no record otherwise. There is a header with useful information, like how many projects for the months there was. It's not because there is no record found that the report is no good. I can have a 100% efficiency if there is no trouble found in the search and I need to see that data, print it and send it to my boss. So how do you people do with that sort of problem? I was thinking about creating a blank record within the table and add to my script something like if Get ( FoundCount ) = 0 show that record... going to try it now but I'm hoping for a better solution. Thank you for your help
Vaughan Posted August 18, 2010 Posted August 18, 2010 I don't think blank records are a good idea. They are bad data. I check for get( foundcount ) = 0 and don't print or preview. I usually show a dialog explaining why nothing happened. If you need to still print a report then create a layout that displays the data just for this case and print it from any record. IOW treat the empty found set as a special case.
zab Posted August 19, 2010 Author Posted August 19, 2010 The blank record idea worked, but I'm going to try your instead. Thank you
Recommended Posts
This topic is 5210 days old. Please don't post here. Open a new topic instead.
Create an account or sign in to comment
You need to be a member in order to leave a comment
Create an account
Sign up for a new account in our community. It's easy!
Register a new accountSign in
Already have an account? Sign in here.
Sign In Now