473,569 Members | 2,761 Online
Bytes | Software Development & Data Engineering Community
+ Post

Home Posts Topics Members FAQ

Repeated Prompts for Parameters when Running Reports in Access

3 New Member
Let me start off by stating that I use Access, but have limited knowledge in SQL... I do have a good understanding of programming (C++) though, so I can follow the logic behind it. But I use dirty but quick methods of doing things in Access that work but probably isn't the best or simiplist methods because I don't know how to do them.

Okay, the problem is that I use a lot of reports in Access that runs off of a query (Query2) that runs off of a query (Query1) that asks for parameters. When I run Query2, it only asks for the parameters from Query1 once. However, when I run the report, I get repeated prompts to enter the parameters-- often 3 or 4 times. Also, it takes a long time to run compared to other reports that use the same data set or ones that don't ask for parameters. The reports work, but it's just annoying and time consuming to keep entering the parameters. It's not just one report, but multiple ones in different databases that do this and use the same method. The reports calculate sums and counts.

Does anyone know what is causing the repeated prompts?
Or what additional information do you need to know?

Thanks so much for your help!
Nov 13 '08 #1
3 1599
atsukoarai86
6 New Member
I may be able to help you.. I had a similar problem with a few of my queries when I first started out with SQL, but I'd have to see the code you've written to be able to offer any sort of direction. Could you post the code so we could have a look at it?
Nov 13 '08 #2
bockyweez
3 New Member
The repeated prompts don't occur when I just run the queries though. It only happens when I run the reports that use the queries.
I don't know how to post the code from the report... but here is the queries that run the report... although like I said, the problem only happens when I run the report and not just the queries.

Here is the query that the report calls....

PARAMETERS [Enter YearTerm] Text ( 255 );
TRANSFORM Count([EnrRpt Table05 Part1].txtStudentID) AS CountOftxtStude ntID
SELECT [EnrRpt Table05 Part1].txtBigLevel1So rt, [EnrRpt Table05 Part1].txtBigLevel1Na me AS [Level], [EnrRpt Table05 Part1].txtFixLevelNam e2 AS Program, [EnrRpt Table05 Part1].txtFixLevelSor t, [EnrRpt Table05 Part1].txtYear, [EnrRpt Table05 Part1].txtTermName
FROM [EnrRpt Table05 Part1]
GROUP BY [EnrRpt Table05 Part1].txtBigLevel1So rt, [EnrRpt Table05 Part1].txtBigLevel1Na me, [EnrRpt Table05 Part1].txtFixLevelNam e2, [EnrRpt Table05 Part1].txtFixLevelSor t, [EnrRpt Table05 Part1].txtYear, [EnrRpt Table05 Part1].txtTermName
ORDER BY [EnrRpt Table05 Part1].txtBigLevel1So rt, [EnrRpt Table05 Part1].txtFixLevelSor t
PIVOT [EnrRpt Table05 Part1].txtSexDescript ion;


And then here is the query that the query above calls (named EnrRpt Table05 Part1).

PARAMETERS [Enter YearTerm] Text ( 255 );
SELECT [ALL STUDENT DATA].txtYearTerm, vtblBigLevel1.t xtBigLevel1Sort , vtblBigLevel1.t xtBigLevel1Name , vtblFixLevel.tx tFixLevelSort, vtblFixLevel.tx tFixLevelName2, [ALL STUDENT DATA].txtStudentID, vtblSex.txtSexD escription, [ALL STUDENT DATA].txtYear, vtblTerm.txtTer mName
FROM (([ALL STUDENT DATA] INNER JOIN ((vtblFixLevel INNER JOIN vtblClass ON vtblFixLevel.tx tFixLevel = vtblClass.txtFi xLevel) INNER JOIN vtblBigLevel1 ON vtblFixLevel.tx tBigLevel1 = vtblBigLevel1.t xtBigLevel1) ON ([ALL STUDENT DATA].txtCollege = vtblClass.txtCo llege) AND ([ALL STUDENT DATA].txtLevel = vtblClass.txtLe vel) AND ([ALL STUDENT DATA].txtClass = vtblClass.txtCl ass)) INNER JOIN vtblSex ON [ALL STUDENT DATA].txtSex = vtblSex.txtSex) INNER JOIN vtblTerm ON [ALL STUDENT DATA].txtTerm = vtblTerm.txtTer m
WHERE ((([ALL STUDENT DATA].txtYearTerm)=[Enter YearTerm]))
ORDER BY vtblBigLevel1.t xtBigLevel1Sort , vtblFixLevel.tx tFixLevelSort;
Nov 14 '08 #3
bockyweez
3 New Member
Help? Anyone?
This problem is driving me crazy!
Nov 19 '08 #4

Sign in to post your reply or Sign up for a free account.

Similar topics

6
2109
by: Brad | last post by:
I have an sql query that has specific criteria (like state='PA' or state = 'NJ'...) and would like to be able to have the user specify the criteria dynamically either through the web or from MSAccess or another tool. The query also does a GROUP BY the state and other variables that are part of the criteria. I know how to get MSAccess and...
1
2903
by: longtim | last post by:
I have been having endless difficulty creating reports/queries that set any relevent parameters from controls in forms. I am creating an application under access 2003 but will target access 2000. The access file is in access 2000 format. I have a form that will hold the relevent parameters for the query/report that reports the statistics...
0
3308
by: Zlatko Matić | last post by:
Hi everybody! Recently I was struggling with client/server issues in MS Access/PostgreSQL combination. Although Access is intuitive and easy to use desktop database solution, many problems appear when someone is trying to use it as front-end for real server database systems such as PostgreSQL or MySQL. One of these problems is regarding...
0
8720
by: stephan | last post by:
I know that this has been beaten to death but I can't seem to resolve my issues (I have 2 of them). I have created a class that exposes a public method which returns a datatable as a datasource for a Crystal Report. The method has a single argument which represents a parameter required by the Stored Procedure. When I generate the report...
3
1943
by: Nancy | last post by:
I have the following scenario. I have some Crystal Reports that were created outside the .NET Visual Studio. These reports were designed to enter date parameters. I have developed a ASP.NET app to display these reports. I am succesfull when there is no parameters. But, Is there a function in .NET to automatically display the Crystal...
1
2112
by: charles | last post by:
Hi all, I have an ASP.Net application that has worked swell on both my development environment and production for some time now. Development is running on a WinXP Pro box, Production is running on a Win 2000 Server. However, the other day we had to move the application to another server. The new server is Windows 2003 box.
2
3172
by: Dean Slindee | last post by:
I would like to pass multiple parameters from a VB.NET application to an existing Access 2003 application's reports (essentially using Access as a report writer where the reports already exist). The reports' datasource is a stored procedure with multiple @parameters. This code works where the report requires no parameter: Dim...
1
1298
by: tom | last post by:
Is it possible to have a report with prompts/parameters, but without an underlying query? I've seen varying posts related to this, but I'm not seeing a concete answer. As I understand it, to make a report with prompts, the parameters (e.g., start and end dates) must be first defined in the report's underlying query. Thus, I am concluding: ...
1
3502
by: tatipellinaresh | last post by:
Hi, I am using reports builder for generating report. In my report iam sending parameters from one jsp to other jsp. In the second jsp parameters are coming good, when iam printing request.getParameter("P_REGIONID") it is coming but it is not applying for parameters in second report. when Iam running the same report from reports builder it...
0
7697
marktang
by: marktang | last post by:
ONU (Optical Network Unit) is one of the key components for providing high-speed Internet services. Its primary function is to act as an endpoint device located at the user's premises. However, people are often confused as to whether an ONU can Work As a Router. In this blog post, we’ll explore What is ONU, What Is Router, ONU & Router’s main...
0
7612
by: Hystou | last post by:
Most computers default to English, but sometimes we require a different language, especially when relocating. Forgot to request a specific language before your computer shipped? No problem! You can effortlessly switch the default language on Windows 10 without reinstalling. I'll walk you through it. First, let's disable language...
0
7924
Oralloy
by: Oralloy | last post by:
Hello folks, I am unable to find appropriate documentation on the type promotion of bit-fields when using the generalised comparison operator "<=>". The problem is that using the GNU compilers, it seems that the internal comparison operator "<=>" tries to promote arguments from unsigned to signed. This is as boiled down as I can make it. ...
0
8120
jinu1996
by: jinu1996 | last post by:
In today's digital age, having a compelling online presence is paramount for businesses aiming to thrive in a competitive landscape. At the heart of this digital strategy lies an intricately woven tapestry of website design and digital marketing. It's not merely about having a website; it's about crafting an immersive digital experience that...
0
7968
tracyyun
by: tracyyun | last post by:
Dear forum friends, With the development of smart home technology, a variety of wireless communication protocols have appeared on the market, such as Zigbee, Z-Wave, Wi-Fi, Bluetooth, etc. Each protocol has its own unique characteristics and advantages, but as a user who is planning to build a smart home system, I am a bit confused by the...
0
6283
agi2029
by: agi2029 | last post by:
Let's talk about the concept of autonomous AI software engineers and no-code agents. These AIs are designed to manage the entire lifecycle of a software development project—planning, coding, testing, and deployment—without human intervention. Imagine an AI that can take a project description, break it down, write the code, debug it, and then...
0
3640
by: adsilva | last post by:
A Windows Forms form does not have the event Unload, like VB6. What one acts like?
1
1212
muto222
by: muto222 | last post by:
How can i add a mobile payment intergratation into php mysql website.
0
937
bsmnconsultancy
by: bsmnconsultancy | last post by:
In today's digital era, a well-designed website is crucial for businesses looking to succeed. Whether you're a small business owner or a large corporation in Toronto, having a strong online presence can significantly impact your brand's success. BSMN Consultancy, a leader in Website Development in Toronto offers valuable insights into creating...

By using Bytes.com and it's services, you agree to our Privacy Policy and Terms of Use.

To disable or enable advertisements and analytics tracking please visit the manage ads & tracking page.