A Microsoft Office (Excel, Word) forum. OfficeFrustration

If this is your first visit, be sure to check out the FAQ by clicking the link above. You may have to register before you can post: click the register link above to proceed. To start viewing messages, select the forum that you want to visit from the selection below.

Go Back   Home » OfficeFrustration forum » Microsoft Access » Setting Up & Running Reports
Site Map Home Register Authors List Search Today's Posts Mark Forums Read  

Display query parameters on report



 
 
Thread Tools Display Modes
  #1  
Old September 30th, 2004, 04:49 PM
Little pete
external usenet poster
 
Posts: n/a
Default Display query parameters on report

I have created a QBF to start a 'make table query'. This data in the make
table query is then put through a 'cross tab query' and finally into a
calander type report. i am wanting to show on the report the query
parameters selected at the QBF stage. I thought I should be able to use the
control source function/expression builder but cant seem to work it out.

Any help would be great, cheers
  #2  
Old September 30th, 2004, 05:23 PM
Little pete
external usenet poster
 
Posts: n/a
Default

Reading through other logs noted that the form needs to be kept open for the
parameter to be displayed, is this a hard and fast rule?? will do if so but
if their are other suggestons bring them on!!

=([Forms]![F_PrintEEReports]![getWkMoDate])


"Little pete" wrote:

I have created a QBF to start a 'make table query'. This data in the make
table query is then put through a 'cross tab query' and finally into a
calander type report. i am wanting to show on the report the query
parameters selected at the QBF stage. I thought I should be able to use the
control source function/expression builder but cant seem to work it out.

Any help would be great, cheers

  #3  
Old September 30th, 2004, 06:41 PM
Marshall Barton
external usenet poster
 
Posts: n/a
Default

Little pete wrote:

Reading through other logs noted that the form needs to be kept open for the
parameter to be displayed, is this a hard and fast rule?? will do if so but
if their are other suggestons bring them on!!

=([Forms]![F_PrintEEReports]![getWkMoDate])


Yes, this is a hard and fast "rule". Actually, it's just
logical that if the form is not open, any values it may have
displayed can't possible available through the form. Don't
forget that the Forms collection only contains open forms.

Either leave it alone or, instead of closing it, make it
invisible and close it in the report's close event
procedure.

--
Marsh
MVP [MS Access]
  #4  
Old October 1st, 2004, 10:05 AM
Little pete
external usenet poster
 
Posts: n/a
Default

Cheers Marsh

Can you shead some light on this make it invisible and close it in the
report's close vent procedure.

thanks

"Marshall Barton" wrote:

Little pete wrote:

Reading through other logs noted that the form needs to be kept open for the
parameter to be displayed, is this a hard and fast rule?? will do if so but
if their are other suggestons bring them on!!

=([Forms]![F_PrintEEReports]![getWkMoDate])


Yes, this is a hard and fast "rule". Actually, it's just
logical that if the form is not open, any values it may have
displayed can't possible available through the form. Don't
forget that the Forms collection only contains open forms.

Either leave it alone or, instead of closing it, make it
invisible and close it in the report's close event
procedure.

--
Marsh
MVP [MS Access]

  #5  
Old October 1st, 2004, 02:01 PM
Marshall Barton
external usenet poster
 
Posts: n/a
Default

Little pete wrote:
Can you shead some light on this make it invisible and close it in the
report's close vent procedure.


Simply replace the existing DoCmd.Close with:
Forms![theform].Visible = False
(which can be shortened to:
Me.Visible = False
if the line is in the form's module) and put:
DoCmd.Close "theform", acForm, acSaveNo
in the report's Close event procedure.

Be sure to change theform with whatever you named your qbf
form.
--
Marsh
MVP [MS Access]



Little pete wrote:
Reading through other logs noted that the form needs to be kept open for the
parameter to be displayed, is this a hard and fast rule?? will do if so but
if their are other suggestons bring them on!!

=([Forms]![F_PrintEEReports]![getWkMoDate])


"Marshall Barton" wrote:
Yes, this is a hard and fast "rule". Actually, it's just
logical that if the form is not open, any values it may have
displayed can't possible available through the form. Don't
forget that the Forms collection only contains open forms.

Either leave it alone or, instead of closing it, make it
invisible and close it in the report's close event
procedure.

 




Thread Tools
Display Modes

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

vB code is On
Smilies are On
[IMG] code is Off
HTML code is Off
Forum Jump

Similar Threads
Thread Thread Starter Forum Replies Last Post
Parameters for a Report (HELP!) Vincent DeLuca Setting Up & Running Reports 5 July 19th, 2004 02:55 AM
Report Based Upon Parameter Query with Form References Vincent DeLuca Setting Up & Running Reports 4 July 19th, 2004 01:55 AM
Newbie? Do I use Report or Query John Egan New Users 11 June 28th, 2004 08:31 PM
Query Form: Print Report Dennis Running & Setting Up Queries 1 June 6th, 2004 01:08 PM


All times are GMT +1. The time now is 12:22 AM.


Powered by vBulletin® Version 3.6.4
Copyright ©2000 - 2024, Jelsoft Enterprises Ltd.
Copyright ©2004-2024 OfficeFrustration.
The comments are property of their posters.