Hi,
Is there a way of changing the report caption dynamically ?
I have a main report driven by nothing (Eg. no stored procedure or table). It has 6 or 7 subreports. On the Report Header of the main report, I put in me.Captions = 'xxxxxxx'. It works perfectly when you open the report in Access with acPreview. But when you open it with acNormal, it does nothing (eg. it reverts back to the report name). I also tried to just go into the property on the report under Captions. You can change it there to a hard value but I could not put something in like Forms!formname!fieldIwanttodisplay. It prints everything I put in there as a literal. I tried surrounding quotes, double quotes, no quotes, = followed by value. Nothing seemed to work. Not sure you can do it there or not. Of course if you leave it blank, then it grabs the report name and substitutes it in there. Well I then tried to change the report name but No can do within the reports header section, not updatable, read only.
Has anyone ever done this before. I found tons of things on the web only to find people having the same problem I am having, so I am not going crazy.
Thanks in advance.
Remember when... everything worked and there was a reason for it?
Is there a way of changing the report caption dynamically ?
I have a main report driven by nothing (Eg. no stored procedure or table). It has 6 or 7 subreports. On the Report Header of the main report, I put in me.Captions = 'xxxxxxx'. It works perfectly when you open the report in Access with acPreview. But when you open it with acNormal, it does nothing (eg. it reverts back to the report name). I also tried to just go into the property on the report under Captions. You can change it there to a hard value but I could not put something in like Forms!formname!fieldIwanttodisplay. It prints everything I put in there as a literal. I tried surrounding quotes, double quotes, no quotes, = followed by value. Nothing seemed to work. Not sure you can do it there or not. Of course if you leave it blank, then it grabs the report name and substitutes it in there. Well I then tried to change the report name but No can do within the reports header section, not updatable, read only.
Has anyone ever done this before. I found tons of things on the web only to find people having the same problem I am having, so I am not going crazy.
Thanks in advance.
Remember when... everything worked and there was a reason for it?