PC Review


Reply
Thread Tools Rate Thread

Parameter Query In Report Title

 
 
Diana Robinson
Guest
Posts: n/a
 
      8th Jun 2011
I have a report that is based on a parameter query. The query is as
follows: Between [Beginning Date] And [Ending Date]. I would like to
have the parameters of the query appear in the report header once it
has been run. I have tried placing a text box in the header and placed
the query in the record source but it will not work. Any suggestions
would be greatly appreciated.

Thank you
 
Reply With Quote
 
 
 
 
John Spencer
Guest
Posts: n/a
 
      8th Jun 2011
Add a textbox control to your report
set its control source to
= "Between " & [Beginning Date] & " and " & [Ending Date]

Parameter prompts can be referred to as if they were fields in the query. Be
sure you spell the prompts exactly as they are in the query.

If you want to format the dates to something other than the default, you can
use the format function
= "Between " & Format([Beginning Date],"mmmm d, yyyy") & " and " &
Format([Ending Date],"mmmm d, yyyy")




John Spencer
Access MVP 2002-2005, 2007-2010
The Hilltop Institute
University of Maryland Baltimore County

On 6/8/2011 9:00 AM, Diana Robinson wrote:
> I have a report that is based on a parameter query. The query is as
> follows: Between [Beginning Date] And [Ending Date]. I would like to
> have the parameters of the query appear in the report header once it
> has been run. I have tried placing a text box in the header and placed
> the query in the record source but it will not work. Any suggestions
> would be greatly appreciated.
>
> Thank you
>


 
Reply With Quote
 
 
 
 
Diana Robinson
Guest
Posts: n/a
 
      8th Jun 2011
On Jun 8, 12:25*pm, John Spencer <JSPEN...@Hilltop.umbc> wrote:
> Add a textbox control to your report
> set its control source to
> = "Between " & [Beginning Date] & " and " & [Ending Date]
>
> Parameter prompts can be referred to as if they were fields in the query.*Be
> sure you spell the prompts exactly as they are in the query.
>
> If you want to format the dates to something other than the default, you can
> use the format function
> = "Between " & Format([Beginning Date],"mmmm d, yyyy") & " and " &
> Format([Ending Date],"mmmm d, yyyy")
>
> John Spencer
> Access MVP 2002-2005, 2007-2010
> The Hilltop Institute
> University of Maryland Baltimore County
>
> On 6/8/2011 9:00 AM, Diana Robinson wrote:
>
>
>
> > I have a report that is based on a parameter query. The query is as
> > follows: Between [Beginning Date] And [Ending Date]. I would like to
> > have the parameters of the query appear in the report header once it
> > has been run. I have tried placing a text box in the header and placed
> > the query in the record source but it will not work. Any suggestions
> > would be greatly appreciated.

>
> > Thank you- Hide quoted text -

>
> - Show quoted text -


John it worked perfectly. Thank yuo so much!
 
Reply With Quote
 
 
 
Reply

Thread Tools
Rate This Thread
Rate This Thread:

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are Off


Similar Threads
Thread Thread Starter Forum Replies Last Post
Re: Parameter Query In Report Title XPS350 Microsoft Access Reports 0 8th Jun 2011 02:24 PM
Parameter Form - Combo Box - Parameter Query - Report Problems SJ Microsoft Access Forms 1 13th Jul 2008 04:02 AM
error STOP:0x0000007B (parameter, parameter, parameter, parameter) robert35 Microsoft Access Getting Started 1 15th Dec 2004 04:28 PM
a title, img title, fp-title =?Utf-8?B?QkIgSXZlcnNvbg==?= Microsoft Frontpage 1 13th Apr 2004 02:10 PM
I have windows XP Home, in windows explorer a folder with mp3s used to show a popup with title and Bitrate now it shows Type, Author, Title, Date Modified, and Size How can I get it back to Title and bitrate?? I use List, not Details jon@AZ.net Windows XP Help 3 30th Dec 2003 09:44 PM


Features
 

Advertising
 

Newsgroups
 


All times are GMT +1. The time now is 03:18 AM.