G
Guest
I have a form (OffenderForm) with a subform (ComplaintForm). In the subform
is a command button to preview a report for a specific record whose key is on
the subform, the ComplaintKey. The criteria in the query is
[Forms]![OffenderForm]![Forms]![ComplaintForm]![ComplaintKey]
Part of the underlying VB code is
qdf.Parameters("Forms!OffenderForm!Forms!ComplaintForm!ComplaintKey") =
sfrm!ComplaintKey
I keep getting the "Enter Parameter Value" screen when trying to preview the
report. When debugging the VB code, I can see the correct value for the
Complaint Key is in "sfrm!ComplaintKey". I suspect that the format of the
Criteria statement in the query is incorrect for indicating a value on a
subform.
Can anyone please help? Thank you so much.
is a command button to preview a report for a specific record whose key is on
the subform, the ComplaintKey. The criteria in the query is
[Forms]![OffenderForm]![Forms]![ComplaintForm]![ComplaintKey]
Part of the underlying VB code is
qdf.Parameters("Forms!OffenderForm!Forms!ComplaintForm!ComplaintKey") =
sfrm!ComplaintKey
I keep getting the "Enter Parameter Value" screen when trying to preview the
report. When debugging the VB code, I can see the correct value for the
Complaint Key is in "sfrm!ComplaintKey". I suspect that the format of the
Criteria statement in the query is incorrect for indicating a value on a
subform.
Can anyone please help? Thank you so much.