| re: Repeated Prompts for Parameters when Running Reports in Access
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 CountOftxtStudentID
SELECT [EnrRpt Table05 Part1].txtBigLevel1Sort, [EnrRpt Table05 Part1].txtBigLevel1Name AS [Level], [EnrRpt Table05 Part1].txtFixLevelName2 AS Program, [EnrRpt Table05 Part1].txtFixLevelSort, [EnrRpt Table05 Part1].txtYear, [EnrRpt Table05 Part1].txtTermName
FROM [EnrRpt Table05 Part1]
GROUP BY [EnrRpt Table05 Part1].txtBigLevel1Sort, [EnrRpt Table05 Part1].txtBigLevel1Name, [EnrRpt Table05 Part1].txtFixLevelName2, [EnrRpt Table05 Part1].txtFixLevelSort, [EnrRpt Table05 Part1].txtYear, [EnrRpt Table05 Part1].txtTermName
ORDER BY [EnrRpt Table05 Part1].txtBigLevel1Sort, [EnrRpt Table05 Part1].txtFixLevelSort
PIVOT [EnrRpt Table05 Part1].txtSexDescription;
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.txtBigLevel1Sort, vtblBigLevel1.txtBigLevel1Name, vtblFixLevel.txtFixLevelSort, vtblFixLevel.txtFixLevelName2, [ALL STUDENT DATA].txtStudentID, vtblSex.txtSexDescription, [ALL STUDENT DATA].txtYear, vtblTerm.txtTermName
FROM (([ALL STUDENT DATA] INNER JOIN ((vtblFixLevel INNER JOIN vtblClass ON vtblFixLevel.txtFixLevel = vtblClass.txtFixLevel) INNER JOIN vtblBigLevel1 ON vtblFixLevel.txtBigLevel1 = vtblBigLevel1.txtBigLevel1) ON ([ALL STUDENT DATA].txtCollege = vtblClass.txtCollege) AND ([ALL STUDENT DATA].txtLevel = vtblClass.txtLevel) AND ([ALL STUDENT DATA].txtClass = vtblClass.txtClass)) INNER JOIN vtblSex ON [ALL STUDENT DATA].txtSex = vtblSex.txtSex) INNER JOIN vtblTerm ON [ALL STUDENT DATA].txtTerm = vtblTerm.txtTerm
WHERE ((([ALL STUDENT DATA].txtYearTerm)=[Enter YearTerm]))
ORDER BY vtblBigLevel1.txtBigLevel1Sort, vtblFixLevel.txtFixLevelSort;
|