PatrickJohnson
Registered User.
- Local time
- Today, 13:24
- Joined
- Jan 26, 2007
- Messages
- 68
Currently, I have a report that checks for expired licenses for employees who are in positions requiring a license. I have it set up in a macro which runs a separate query for each department (i know there is a better way to do this, but i don't know how), generates a report of the output, then sends the report to whatever contact i have specified for that department.
My problem is that when the report is blank, i don't want to send anything. I've tried setting the condition for the send object to:
[Reports]![OHA License Query FULL]![Full Name] Is Not Null
As the full name is popluated any time there is a record, this should work. but it doesn't. it works opposite. If i change it to:
[Reports]![OHA License Query FULL]![Full Name] Is Null
It works the way I want it to. This would be fine, except it makes no sense and I insist on understanding something before I implement it.
With the "Is Not Null" as the condition for the sendobject command, it should only send out populated reports, right? and skip the empty ones?
My problem is that when the report is blank, i don't want to send anything. I've tried setting the condition for the send object to:
[Reports]![OHA License Query FULL]![Full Name] Is Not Null
As the full name is popluated any time there is a record, this should work. but it doesn't. it works opposite. If i change it to:
[Reports]![OHA License Query FULL]![Full Name] Is Null
It works the way I want it to. This would be fine, except it makes no sense and I insist on understanding something before I implement it.
With the "Is Not Null" as the condition for the sendobject command, it should only send out populated reports, right? and skip the empty ones?