Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations Mike Lewis on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

"In Array" forrmula issue

Status
Not open for further replies.

loschiavoj

Programmer
Dec 28, 2000
23
0
0
US
I am trying to have a simple array formula return a value to a report when no records are found. It currently leaves the field blank when no records are found. If it finds a record it returns the correct value.

if {PM_VW.PM} in {?PM}
then
{PM_VW.PM_NAME}
else
"No Records Found
 
loschiavoj,

Are you simply trying to place a message when the entire report is empty?

{@Notice_NoResults}
Code:
IF IsNull({PM_VW.PM}) Then "No Records Found" ELSE ""

If you are looking to modify your above formula (as it is not for the entire report, but for some other structure), please try:
{@Mod_YourFormula}
Code:
IF IsNull({PM_VW.PM}) THEN "No Records Found" ELSE
IF {PM_VW.PM} in {?PM} THEN {PM_VW.PM_NAME} ELSE 
"No Records Found"

Please note: I have found that the "IsNull()" check has to be first in your formula's to be properly evaluated.

Hope this helps!

Mike
---------------------------------------------------------------
"To be alive is to revel in the moments, in the sunrise and the sunset, in the sudden and brief episodes of love and adventure,
in the hours of companionship. It is, most of all, to never be paralyzed by your fears of a future that no one can foretell."
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top