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 combo boxes and two buttons.
The combo boxes consist of two numeric unbound controls (“Patient Number” and “Cycle”. The third unbound control is text (“Medication”).
The two buttons serve to “Print” a report and to let the user “Close” this form.
The “Print” button has a macro attached to the ‘On click’ event property that activates a report “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”.
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]![Medication]=[Forms]![Trtmnts_Admnstrd]![Medication]
Here’s the punch-line: when I click “Print” on the “Trtmnts_Admnstrd” form, you’re prompted to provide “Cycle” followed by [Forms]![Treatment and Toxicity]![Protocol Medications]![Medication]
Suffice it to say this has me scratching my (newbie) head as in slightly bamboozled: I know these ‘prompts’ suggest that the data aren’t getting passed along, but why not?
anyone got a clue?
The combo boxes consist of two numeric unbound controls (“Patient Number” and “Cycle”. The third unbound control is text (“Medication”).
The two buttons serve to “Print” a report and to let the user “Close” this form.
The “Print” button has a macro attached to the ‘On click’ event property that activates a report “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”.
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]![Medication]=[Forms]![Trtmnts_Admnstrd]![Medication]
Here’s the punch-line: when I click “Print” on the “Trtmnts_Admnstrd” form, you’re prompted to provide “Cycle” followed by [Forms]![Treatment and Toxicity]![Protocol Medications]![Medication]
Suffice it to say this has me scratching my (newbie) head as in slightly bamboozled: I know these ‘prompts’ suggest that the data aren’t getting passed along, but why not?
anyone got a clue?