How do you filter two calculated text boxes in a report?

No I don't get any message. The report just pulls up like the attachment.
 

Attachments

  • 8-11-2011 12-45-38 PM.png
    8-11-2011 12-45-38 PM.png
    2.6 KB · Views: 109
The problem is that there is data, it's just being hidden by the other code. That's the downside to this after-the-fact handling of the records. Let me experiment with something.
 
I have tried a couple of options like putting a message box in report page or report print to let the user know if there is a blank page that they have no employees. Still not sure if there is an option. Thanks for helping me with all of this. Let me know if you find a way around it...
 
Can an employee have more than one record? If not, this seems to work:

strFilter = "(Nz([7],0)+Nz([8],0)+Nz([9],0)+Nz([10],0)+Nz([11],0)+Nz([12],0))-24 > 0"
stDocName = "2011 Sick AbuserTbl MM Report"
DoCmd.OpenReport stDocName, acPreview, , strFilter

You can't have the Sum() function in the wherecondition, so this looks at each individual record. In my brief tests, this triggers the no data event, and as expected the second message from the error handler.
 
Worked like a charm. I did try to do the strFilter with the "calculation" however I was keeping the "Sum" still in the coded information. No wonder it wouldn't work. Thanks again for all your help. The report is now completed thanks to you and your great expertise!!!
 
Glad we got it sorted out.
 

Users who are viewing this thread

Back
Top Bottom