I have a form called “Trtmnts_Admnstrd” whose purpose is to let the user identify the record in the database (s)he wants to appear in a report called: “Treatment Administered”. On this form are three unbound combo box type controls and two command type buttons.
The combo boxes consist of two numeric controls (called “Patient Number” and “Cycle”. The third control is text (“Medication”).
The two buttons serve to “Print” a report and to let the user “Close” this form. We shall be focusing on the first one.
The “Print” button has a macro attached to the ‘On click’ event property that activates a report called “Treatment Administered”. “Treatment Adminstered” consists of a parent report and a correlated (child) sub-report called “Treatment and Toxicity” and “Protocol Medications”, respectively, and the linking fields (as I call them) in each are “Patient Number” and “Cycle” in the child and “Patient Number” and “Cycle Number” in the master. “Medication”, which is defined by the user on the third unbound control is on the sub-report which we said is called “Protocol Medications”. [I don't know whether this is important or not, nevertheless, the report is a condensed version of a form/sub-form combination which was 'Saved as' a 'Report' and from which controls were dropped leaving the report/sub-report "Treatment and Toxicity"]
The “Where condition” of the “Open Report” action of the macro that the clicking action launches is:
[Cycle]=[Forms]![Trtmnts_Admnstrd]![Cycle] And [Patient Number]=[Forms]![Trtmnts_Admnstrd]![Patient Number] And [Forms]![Treatment and Toxicity]![Protocol Medications].[Form]![Medication]=[Forms]![Trtmnts_Admnstrd]![Medication]
The point of this posting is to tell you that when I click “Print” on the “Trtmnts_Admnstrd” form, you’re prompted to provide a couple of parameters. If I ignore both of them, a report having empty controls is generated.
Suffice it to say this has me scratching my head as I 'know' these ‘prompts’ suggest that the data aren’t getting passed along. I can not undestand this.
The combo boxes consist of two numeric controls (called “Patient Number” and “Cycle”. The third control is text (“Medication”).
The two buttons serve to “Print” a report and to let the user “Close” this form. We shall be focusing on the first one.
The “Print” button has a macro attached to the ‘On click’ event property that activates a report called “Treatment Administered”. “Treatment Adminstered” consists of a parent report and a correlated (child) sub-report called “Treatment and Toxicity” and “Protocol Medications”, respectively, and the linking fields (as I call them) in each are “Patient Number” and “Cycle” in the child and “Patient Number” and “Cycle Number” in the master. “Medication”, which is defined by the user on the third unbound control is on the sub-report which we said is called “Protocol Medications”. [I don't know whether this is important or not, nevertheless, the report is a condensed version of a form/sub-form combination which was 'Saved as' a 'Report' and from which controls were dropped leaving the report/sub-report "Treatment and Toxicity"]
The “Where condition” of the “Open Report” action of the macro that the clicking action launches is:
[Cycle]=[Forms]![Trtmnts_Admnstrd]![Cycle] And [Patient Number]=[Forms]![Trtmnts_Admnstrd]![Patient Number] And [Forms]![Treatment and Toxicity]![Protocol Medications].[Form]![Medication]=[Forms]![Trtmnts_Admnstrd]![Medication]
The point of this posting is to tell you that when I click “Print” on the “Trtmnts_Admnstrd” form, you’re prompted to provide a couple of parameters. If I ignore both of them, a report having empty controls is generated.
Suffice it to say this has me scratching my head as I 'know' these ‘prompts’ suggest that the data aren’t getting passed along. I can not undestand this.