From: Steve Stad on
Is it possible to programmatically write the name of the query the report is
based on in a text box in the report footer.
From: Allen Browne on
"Steve Stad" <SteveStad(a)discussions.microsoft.com> wrote in message
news:A1B0F793-C14A-4101-AB45-807BE72A4A11(a)microsoft.com...
> Is it possible to programmatically write the name of the query the report
> is based on in a text box in the report footer.

Place a text box on your report, and set its Control Source property to:
=[Report].[RecordSource]

--
Allen Browne - Microsoft MVP. Perth, Western Australia
Tips for Access users - http://allenbrowne.com/tips.html
Reply to group, rather than allenbrowne at mvps dot org.

From: Steve Stad on
Thank you mate.

"Allen Browne" wrote:

> "Steve Stad" <SteveStad(a)discussions.microsoft.com> wrote in message
> news:A1B0F793-C14A-4101-AB45-807BE72A4A11(a)microsoft.com...
> > Is it possible to programmatically write the name of the query the report
> > is based on in a text box in the report footer.
>
> Place a text box on your report, and set its Control Source property to:
> =[Report].[RecordSource]
>
> --
> Allen Browne - Microsoft MVP. Perth, Western Australia
> Tips for Access users - http://allenbrowne.com/tips.html
> Reply to group, rather than allenbrowne at mvps dot org.
>
> .
>