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  

Access07 report requiring all fields of the record source?



 
 
Thread Tools Display Modes
  #1  
Old August 6th, 2009, 03:00 PM posted to microsoft.public.access.reports
GBA
external usenet poster
 
Posts: 174
Default Access07 report requiring all fields of the record source?

Access07 designed new report using wizard

selected just the fields needed for report

but the report opened up with a parameter prompt for a field in the
underlying query but not on the report.....

so I put it on the report, made it not visible....and now when I open the
report there is another parameter prompt for another field not on the
report....

what gives?
  #2  
Old August 6th, 2009, 03:09 PM posted to microsoft.public.access.reports
Allen Browne
external usenet poster
 
Posts: 11,706
Default Access07 report requiring all fields of the record source?

When you run the query itself, do you get prompted for the parameters? If
so, you will be prompted for the same parameters when you run the report,
regardless of whether these fields are on the report or not.

If the query runs without asking for these parameters, you've been caught by
the report optimizer. It tries to be too clever: if it doesn't see a control
bound to the field, it may not fetch it. But if the field is needed for an
expression somewhere, then it handles the unfetched field by popping up the
parameter box.

The problem expression may not be in an obvious place: e.g. it could be in
the report's Filter or OrderBy properties.

--
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.

"GBA" wrote in message
...
Access07 designed new report using wizard

selected just the fields needed for report

but the report opened up with a parameter prompt for a field in the
underlying query but not on the report.....

so I put it on the report, made it not visible....and now when I open the
report there is another parameter prompt for another field not on the
report....

what gives?


  #3  
Old August 6th, 2009, 03:57 PM posted to microsoft.public.access.reports
GBA
external usenet poster
 
Posts: 174
Default Access07 report requiring all fields of the record source?

no prompt in underlying query; which is what makes this so frustrating.

have never heard of 'report optimizer'...will take a look around and let you
know....



"Allen Browne" wrote:

When you run the query itself, do you get prompted for the parameters? If
so, you will be prompted for the same parameters when you run the report,
regardless of whether these fields are on the report or not.

If the query runs without asking for these parameters, you've been caught by
the report optimizer. It tries to be too clever: if it doesn't see a control
bound to the field, it may not fetch it. But if the field is needed for an
expression somewhere, then it handles the unfetched field by popping up the
parameter box.

The problem expression may not be in an obvious place: e.g. it could be in
the report's Filter or OrderBy properties.

--
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.

"GBA" wrote in message
...
Access07 designed new report using wizard

selected just the fields needed for report

but the report opened up with a parameter prompt for a field in the
underlying query but not on the report.....

so I put it on the report, made it not visible....and now when I open the
report there is another parameter prompt for another field not on the
report....

what gives?



  #4  
Old August 6th, 2009, 04:01 PM posted to microsoft.public.access.reports
GBA
external usenet poster
 
Posts: 174
Default Access07 report requiring all fields of the record source?

you nailed it

there was an expression in both the filter and orderby ; both containing
the parameter prompt's field...

boy - that is a no fun feature flaw..... thanks much for the assist...



"Allen Browne" wrote:

When you run the query itself, do you get prompted for the parameters? If
so, you will be prompted for the same parameters when you run the report,
regardless of whether these fields are on the report or not.

If the query runs without asking for these parameters, you've been caught by
the report optimizer. It tries to be too clever: if it doesn't see a control
bound to the field, it may not fetch it. But if the field is needed for an
expression somewhere, then it handles the unfetched field by popping up the
parameter box.

The problem expression may not be in an obvious place: e.g. it could be in
the report's Filter or OrderBy properties.

--
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.

"GBA" wrote in message
...
Access07 designed new report using wizard

selected just the fields needed for report

but the report opened up with a parameter prompt for a field in the
underlying query but not on the report.....

so I put it on the report, made it not visible....and now when I open the
report there is another parameter prompt for another field not on the
report....

what gives?



 




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


All times are GMT +1. The time now is 07:07 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.