SilentAiche
Technical User
Hi All:
I have inherited a database and the boss wants a new report.
The general scenario: we review Institutions and the sites they sponsor (if any), which means the number of sites could be range from 0 to hundreds.
Two tables:
Administrative Reviews
ID - autonumber, primary key
Agreement # - number (always 4 digits)
Sponsor Name - text
Consultant - text
Notes - memo
(and about 16 more fields)
Site
ID - number, manually input, link to table above (this table has no primary key for some reason)
Agreement Number - text (should match above; don't know why name and data type are different)
Site Name - text
Consultant - text (could be different from Consultant field above)
Notes - memo
(and about five more fields)
I made two queries which draw 100% of the fields from the two tables above, named respectively qryAllFields and qrySiteInfo. They work.
I designed a report based on qryAllFields to summarize 100% of the data in the Administrative Reviews table. It works.
Using the Wizard, I tried to add a Subreport based on qrySiteInfo to reflect 100% of the information in the Sites table. The subreport runs fine if it is run alone (double click from reports list).
However, the report containing the subreport brings up three consecutive boxes asking me to Enter a Parameter Value, first for "Site" and then twice in a row for "Site.ID." I don't have any parameters set in the underlying queries, so I'm not sure what it's looking for.
If I click okay without entering anything I get a blank report. If I enter nothing for Site, "346" for the first request for Site.ID, and then either leave blank or reenter "346" for the second request for Site.ID, I get exactly the report I want for Site #346.
If I try to view Page 2 (using the buttons in the lower left corner), I no longer get the first "Enter a Parameter Value" box for Site, but I still get the two boxes asking for the Site.ID. If I enter a valid Site.ID for the first box, I get what i want. If I enter a Site.ID only in the last box I just get a blank report.
What I want is for the report to show me all the info from the Administrative Reviews table and all the related Site information in a subreport immediately beneath it.
I know this has been longwinded, so thanks to anyone who is still reading! Why is it asking for Parameter values?
Tim
[blue]_____________________________________________________
If you need immediate assistance, please raise your hand.
If you are outside of Raleigh, raise your hand and say[/blue] [red]Ooh! Ooh![/red]
I have inherited a database and the boss wants a new report.
The general scenario: we review Institutions and the sites they sponsor (if any), which means the number of sites could be range from 0 to hundreds.
Two tables:
Administrative Reviews
ID - autonumber, primary key
Agreement # - number (always 4 digits)
Sponsor Name - text
Consultant - text
Notes - memo
(and about 16 more fields)
Site
ID - number, manually input, link to table above (this table has no primary key for some reason)
Agreement Number - text (should match above; don't know why name and data type are different)
Site Name - text
Consultant - text (could be different from Consultant field above)
Notes - memo
(and about five more fields)
I made two queries which draw 100% of the fields from the two tables above, named respectively qryAllFields and qrySiteInfo. They work.
I designed a report based on qryAllFields to summarize 100% of the data in the Administrative Reviews table. It works.
Using the Wizard, I tried to add a Subreport based on qrySiteInfo to reflect 100% of the information in the Sites table. The subreport runs fine if it is run alone (double click from reports list).
However, the report containing the subreport brings up three consecutive boxes asking me to Enter a Parameter Value, first for "Site" and then twice in a row for "Site.ID." I don't have any parameters set in the underlying queries, so I'm not sure what it's looking for.
If I click okay without entering anything I get a blank report. If I enter nothing for Site, "346" for the first request for Site.ID, and then either leave blank or reenter "346" for the second request for Site.ID, I get exactly the report I want for Site #346.
If I try to view Page 2 (using the buttons in the lower left corner), I no longer get the first "Enter a Parameter Value" box for Site, but I still get the two boxes asking for the Site.ID. If I enter a valid Site.ID for the first box, I get what i want. If I enter a Site.ID only in the last box I just get a blank report.
What I want is for the report to show me all the info from the Administrative Reviews table and all the related Site information in a subreport immediately beneath it.
I know this has been longwinded, so thanks to anyone who is still reading! Why is it asking for Parameter values?
Tim
[blue]_____________________________________________________
If you need immediate assistance, please raise your hand.
If you are outside of Raleigh, raise your hand and say[/blue] [red]Ooh! Ooh![/red]