Our facility just updated MS Office from 2003 to 2007. I have an inherited database that has a new problem. There is a clumsy but functional report that consists of 57 subreports in the header section of an otherwise unaltered report. There is only the title, a date() field, a page number field, and the 57 subreports arranged in rows.
Each subreport is attached to a crosstab query that generates a small "table"...usually 3 columns by 4 to 10 rows.
The problem is this, since Office was updated, the report keeps looking for the field:
CAdatefilteredPHS6/03Query.PatientLastName (from the query most of the crosstabs are based on)
or
Coding Abstraction.PatientLastName (from the table the query above is based on)
...in an "Enter Parameter Value" dialog.
I know, TERRIBLE nomenclature! (I inherited this, remember!) But it used to work fine. With such a basic report and 57 subreports to fix, I left well enough alone! The strange thing is:
1. While the field PatientLastName IS in the query underlying the report, there is nothing in the report "looking" at it.
2. In the query AND in all the queries in the subreports, nowhere is there anywhere where there is a parameter to search for in PatientLastName. The condition for that field is blank in every query.
3. The field, PatientLastName is not even used in any of the crosstab queries.
4. All of the queries for each subreport run just fine if you run them seperately.
5. The "Enter Parameter Value" prompt comes up about 12 times, DEFINITELY less than 57.
6. There is NO SQL or macros buried behind the scenes.
Any suggestions? Thanks in advance!!!
BTW... Here is the SQL for the query:
SELECT [Coding Abstraction].DischargeDate, [Coding Abstraction].PatientLastName, [Coding Abstraction].RecordStarted, [Coding Abstraction].PatientSSN, [Coding Abstraction].Attending, [Coding Abstraction].Service, [Coding Abstraction].Informed_Consent_Pro, [Coding Abstraction].[509 IC-Proc 1], [Coding Abstraction].[Pro1 sf 522], [Coding Abstraction].[Imed IC proc 1], [Coding Abstraction].[Service 2], [Coding Abstraction].[509 IC-Proc 2], [Coding Abstraction].[Pro 2 sf 522], [Coding Abstraction].[Imed IC proc 2], [Coding Abstraction].Inform_Consent_Note, [Coding Abstraction].[StaffConcurW/I24Hours], [Coding Abstraction].StaffNoteatchange, [Coding Abstraction].[Significant Chg W/Reassessment], [Coding Abstraction].Surgery, [Coding Abstraction].[Surg Treating Specialty ID], [Coding Abstraction].[509 IC-Proc surg], [Coding Abstraction].[surg sf 522], [Coding Abstraction].[Imed IC proc surg], [Coding Abstraction].Surg_Pre_OP_Note, [Coding Abstraction].[Name of Surgeon & Assistant], *
FROM [Coding Abstraction]
WHERE ((([Coding Abstraction].DischargeDate) Between #6/1/2009# And #6/30/2009#));
Each subreport is attached to a crosstab query that generates a small "table"...usually 3 columns by 4 to 10 rows.
The problem is this, since Office was updated, the report keeps looking for the field:
CAdatefilteredPHS6/03Query.PatientLastName (from the query most of the crosstabs are based on)
or
Coding Abstraction.PatientLastName (from the table the query above is based on)
...in an "Enter Parameter Value" dialog.
I know, TERRIBLE nomenclature! (I inherited this, remember!) But it used to work fine. With such a basic report and 57 subreports to fix, I left well enough alone! The strange thing is:
1. While the field PatientLastName IS in the query underlying the report, there is nothing in the report "looking" at it.
2. In the query AND in all the queries in the subreports, nowhere is there anywhere where there is a parameter to search for in PatientLastName. The condition for that field is blank in every query.
3. The field, PatientLastName is not even used in any of the crosstab queries.
4. All of the queries for each subreport run just fine if you run them seperately.
5. The "Enter Parameter Value" prompt comes up about 12 times, DEFINITELY less than 57.
6. There is NO SQL or macros buried behind the scenes.
Any suggestions? Thanks in advance!!!
BTW... Here is the SQL for the query:
SELECT [Coding Abstraction].DischargeDate, [Coding Abstraction].PatientLastName, [Coding Abstraction].RecordStarted, [Coding Abstraction].PatientSSN, [Coding Abstraction].Attending, [Coding Abstraction].Service, [Coding Abstraction].Informed_Consent_Pro, [Coding Abstraction].[509 IC-Proc 1], [Coding Abstraction].[Pro1 sf 522], [Coding Abstraction].[Imed IC proc 1], [Coding Abstraction].[Service 2], [Coding Abstraction].[509 IC-Proc 2], [Coding Abstraction].[Pro 2 sf 522], [Coding Abstraction].[Imed IC proc 2], [Coding Abstraction].Inform_Consent_Note, [Coding Abstraction].[StaffConcurW/I24Hours], [Coding Abstraction].StaffNoteatchange, [Coding Abstraction].[Significant Chg W/Reassessment], [Coding Abstraction].Surgery, [Coding Abstraction].[Surg Treating Specialty ID], [Coding Abstraction].[509 IC-Proc surg], [Coding Abstraction].[surg sf 522], [Coding Abstraction].[Imed IC proc surg], [Coding Abstraction].Surg_Pre_OP_Note, [Coding Abstraction].[Name of Surgeon & Assistant], *
FROM [Coding Abstraction]
WHERE ((([Coding Abstraction].DischargeDate) Between #6/1/2009# And #6/30/2009#));
Last edited: