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 » Running & Setting Up Queries
Site Map Home Register Authors List Search Today's Posts Mark Forums Read  

Current report group as a query parameter



 
 
Thread Tools Display Modes
  #1  
Old September 16th, 2005, 05:45 PM
Jeff Polack
external usenet poster
 
Posts: n/a
Default Current report group as a query parameter

I have query that is the source for a sub-report. The main report using
grouping (person, client). The query uses the client ID that appears in the
client group header as a parameter.

When I open the report and show page for Client #1 in the preview window,
the query pull data for Client #2. This occurs despite the fact that Client
#2 doesn't show on the current page. If I advance the report to show Client
#2's page and rerun the query, the query results are for Client #3.

The objective is to get the query to return data for the active (i.e.,
displayed) client group, not the subsequent group.

Any ideas would be appreciated. (Sorry if this ends up as a double post;
couldn't see that the original post made it to the board.)

Thanks in advance
  #2  
Old September 16th, 2005, 08:54 PM
[MVP] S.Clark
external usenet poster
 
Posts: n/a
Default

What is the:
1. Recordsource for the Main Report?
2. Recordsource for the Sub Report?
3. Link Child Master Field?
4. Link Child Child Field?


--
Steve Clark, Access MVP
FMS, Inc.
Call us for all of your Access Development Needs!
1-888-220-6234

www.fmsinc.com/consulting

"Jeff Polack" wrote in message
...
I have query that is the source for a sub-report. The main report using
grouping (person, client). The query uses the client ID that appears in
the
client group header as a parameter.

When I open the report and show page for Client #1 in the preview window,
the query pull data for Client #2. This occurs despite the fact that
Client
#2 doesn't show on the current page. If I advance the report to show
Client
#2's page and rerun the query, the query results are for Client #3.

The objective is to get the query to return data for the active (i.e.,
displayed) client group, not the subsequent group.

Any ideas would be appreciated. (Sorry if this ends up as a double post;
couldn't see that the original post made it to the board.)

Thanks in advance



 




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
Need Help In Printing Current Record in Specific Report RNUSZ@OKDPS Setting Up & Running Reports 1 May 16th, 2005 09:06 PM
Here's a shocker Mike Labosh General Discussion 2 October 26th, 2004 05:04 PM
Too Few Parameters error Mail Merge Access Parameter Query Tony_VBACoder Mailmerge 3 September 14th, 2004 12:15 PM
Display Parameter from Form on Report sara Setting Up & Running Reports 10 July 19th, 2004 04:54 PM
Help Needed for Groups Please Paul Black General Discussion 15 June 21st, 2004 02:54 AM


All times are GMT +1. The time now is 09:14 PM.


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