[x]
Posted via EE Mobile

Search, ask, and monitor your questions on the go with EE Mobile. Visit Experts Exchange from your mobile device and never be out of touch again.

Question
[x]
Attachment Details
[x]
The Solution Rating System

With so many solutions, how can you tell which solutions are most likely to help you and which ones are not? To provide you with a tool to use, we rate our solutions based on various elements that most accurately determine if a solution is a quality solution. To explain what factors affect the solution rating, here are the elements we take into consideration when formulating our solution rating.

  • The Grade of the Solution
  • The Zone Rank of the Expert Providing the Solution
  • The Number of Author and Expert Comments
  • The Number of Experts Contributing
  • The Feedback of the Community

Your Input Matters
Because of the way the system is set up, the most important variable in this equation is you. As a member of Experts Exchange, you are able to cast your vote on the quality of the solutions in regard to how complete, accurate, helpful and easy to understand each solution is. When you provide your feedback, each rating is adjusted accordingly. So, if you see a solution that has a poor rating that you think is a good solution, let us know by rating it. As you do, the rating will be adjusted and will become more accurate for other members of our site.

If you have any suggestions that you would like to make for our rating system, please ask a question in the Suggestions Zone of Community Support.

Thank you!

8.6

Passing Parameters from Report to SubReport

Asked by DaveSavittiere in Microsoft Access Database

Tags: subreport, access

Hello Experts!

I have been having a terrible time trying to figure this out, so any help is EXTREMELY appreciated!

Here's the problem:

I am designing an Access Project with Access 2000 on an XP sp1 workstation connected to an SQL Server 2000 sp3.  In my project I have several reports, all of which get their data through stored procedures.  The one report in question has 4 subreports that each have a different stored procedure.  Each of those SP's require a parameter, but the parameter is the same for all...

EXAMPLE:

rptMAIN.recordsource = Report_QuarterBudget '1st Quarter'
rptSub1.recordsource = Report_QLocationBudget '1st Quarter'
rptSub2.recordsource = Report_QLocationWedge '1st Quarter'
rptSub3.recordsource = Report_QLocationBudgetSummary '1st Quarter'
rptSub4.recordsource = Report_QLocationWedgeSummary '1st Quarter'

I have a form, frmMenuReports, that has a list box populated with the names of all available reports.  When the user chooses the report s/he wants to run, s/he clicks the item in the list box which then opens an option to run that report as a total of all quarters, or by specific quarter.  If the user chooses '1st Quarter', I need to pass that string value to rptMain and all it's subs as the parameter for each SP.  When I run the report from the database window, without using my frmMenuReports, a dialog appears asking me for the parameter.  I enter '1st Quarter' and it runs just fine, except that it asks me for the paramater for each SP that is being executed and then a couple more.  Actually, it asks me for the parameter 9 times before the report actually prints, but it ends up printing correctly.  I really need to be able to drive this report from a menu without having the user type out '1st Quarter' and I cannot figure out how to pass the ONE PARAMETER to the five SP's....  

Please let me know if I need to clarify any further, and thanks in advance!!

Dave Savittiere
[+][-]05/26/05 09:35 AM, ID: 14087662Accepted Solution

View this solution now by starting your 30-day free trial. Setting up your free trial is quick, easy, and secure. We will return you to this solution, unlocked, when you're done.

About this solution

Zone: Microsoft Access Database
Tags: subreport, access
Sign Up Now!
Solution Provided By: Arji
Participating Experts: 3
Solution Grade: A
 
[+][-]05/24/05 02:20 PM, ID: 14072642Expert Comment

At Experts Exchange, members can ask their questions to thousands of technology professionals, also known as Experts. Experts compete and collaborate to answer those questions by leaving comments like this one.

Start your 30-day free trial to view this Expert Comment or ask the Experts your question.

 
[+][-]05/24/05 05:28 PM, ID: 14073831Expert Comment

At Experts Exchange, members can ask their questions to thousands of technology professionals, also known as Experts. Experts compete and collaborate to answer those questions by leaving comments like this one.

Start your 30-day free trial to view this Expert Comment or ask the Experts your question.

 
[+][-]05/25/05 02:22 PM, ID: 14081630Author Comment

Often, when Experts are collaborating with members who have asked questions, they will request additional information about the problem. Askers respond with an author comment like this one.

Start your 30-day free trial to view this Author Comment or ask the Experts your question.

 
[+][-]05/25/05 03:37 PM, ID: 14081993Expert Comment

At Experts Exchange, members can ask their questions to thousands of technology professionals, also known as Experts. Experts compete and collaborate to answer those questions by leaving comments like this one.

Start your 30-day free trial to view this Expert Comment or ask the Experts your question.

 
[+][-]05/25/05 03:58 PM, ID: 14082086Expert Comment

At Experts Exchange, members can ask their questions to thousands of technology professionals, also known as Experts. Experts compete and collaborate to answer those questions by leaving comments like this one.

Start your 30-day free trial to view this Expert Comment or ask the Experts your question.

 
[+][-]05/25/05 04:33 PM, ID: 14082209Expert Comment

At Experts Exchange, members can ask their questions to thousands of technology professionals, also known as Experts. Experts compete and collaborate to answer those questions by leaving comments like this one.

Start your 30-day free trial to view this Expert Comment or ask the Experts your question.

 
[+][-]05/26/05 08:29 AM, ID: 14086918Author Comment

Often, when Experts are collaborating with members who have asked questions, they will request additional information about the problem. Askers respond with an author comment like this one.

Start your 30-day free trial to view this Author Comment or ask the Experts your question.

 
[+][-]05/26/05 09:55 AM, ID: 14087854Author Comment

Often, when Experts are collaborating with members who have asked questions, they will request additional information about the problem. Askers respond with an author comment like this one.

Start your 30-day free trial to view this Author Comment or ask the Experts your question.

 
[+][-]05/26/05 10:08 AM, ID: 14087968Expert Comment

At Experts Exchange, members can ask their questions to thousands of technology professionals, also known as Experts. Experts compete and collaborate to answer those questions by leaving comments like this one.

Start your 30-day free trial to view this Expert Comment or ask the Experts your question.

 
[+][-]07/27/05 11:12 AM, ID: 14539550Administrative Comment

Experts Exchange has a courteous staff of administrators who help members get the most out of the website by means of administrative comments like this one.

Start your 30-day free trial to view this Administrative Comment or ask the Experts your question.

 
[+][-]07/31/05 02:48 AM, ID: 14564366Administrative Comment

Experts Exchange has a courteous staff of administrators who help members get the most out of the website by means of administrative comments like this one.

Start your 30-day free trial to view this Administrative Comment or ask the Experts your question.

 
 
Loading Advertisement...
20091111-EE-VQP-92