Reeza, I have many hospitals' data and it is in different formats and some fields are named differently. I actually have many of the same report per site which is labour intensive when I have to update so I would like one report where I enter the site in a variable and the report produces only for that site, I change the variable and run again.
In this instance, the field of CCI status is different for some sites versus others so I wanted to use the same rename macro as always BUT have an if statement as to what field to rename depending on the site. If it is sites a, b and c then the source field for the status&i = pxattr&i else the source is pxstat&i.
Thanks.
... View more