Level Extreme platform
Subscription
Corporate profile
Products & Services
Support
Legal
Français
Print When
Message
General information
Forum:
Visual FoxPro
Category:
Reports & Report designer
Title:
Miscellaneous
Thread ID:
00458521
Message ID:
00459197
Views:
20
From Mahmood:

I have this code in my report in the Print When section.

*// code
IIF(Between(creport.type,1,2),"L",IIF(creport.type=5,"M",IIF(Between(creport.type,6,9),"D","")))
I want the report to display "L","M" or "D" depending on the value in creport.type.

However, when I run the report I am getting nothing, The field is blank. It should not be blank, becaue I know that there are two record in my cursor (creport). The values of type in creport are 1 and 5. Can anyone tell me why I am not getting the correct result.

----->
Instead of putting your code in the print when section just
put it directly on the field control box...
Joe Mamokan
Database Specialist
Email Address: mamokan@eudoramail.com
Url Address: http://visnet_dd.tripod.com
"Can you VISUALIZE Quick Data Access"
Cell # +639172482033
Previous
Reply
Map
View

Click here to load this message in the networking platform