Level Extreme platform
Subscription
Corporate profile
Products & Services
Support
Legal
Français
Can you macrocubstitute on a Report?
Message
From
30/06/2000 12:25:34
Cindy Winegarden
Duke University Medical Center
Durham, North Carolina, United States
 
 
To
30/06/2000 11:26:23
Brent Knight
Progressive Impressions International
Bloomington, Illinois, United States
General information
Forum:
Visual FoxPro
Category:
Reports & Report designer
Miscellaneous
Thread ID:
00387100
Message ID:
00387151
Views:
17
Brent,

Another way that no one has mentioned.

SELECT the data with a statement which will pull either field but give the resulting column a consistent name.

Something like:
lcMySelectStatement = [.....,] + ;
    IIF(< some logical statement >, "ThisField ", "ThatField " ) + ;
    [AS MyField, ] + ;
    [ .... ]
&lcMySelectStatement
and then just refer to MyField on the report.



>I have a report where I have set up a field that holds printall.&lcorder. Lcorder is a varible that is passed from a calling form. When I run the report, it gives me a syntax error on that field. Is it possible to macrosubstitute from a report? Lcorder holds a field name that is based on if that fieldname exists in the current table. If it does then lcorder holds that fieldname. If that fieldname is not in the table then it holds a field that is.
>
>Any help would be great
>
>Thanks
Previous
Reply
Map
View

Click here to load this message in the networking platform