P
Pamela via AccessMonster.com
Hello,'
I have a button on a subform which opens another form. This works fine, but
on the form that is opened, there is a button to preview a report. The
report is based on the following query:
SELECT tblTerm.*, tblTerm.TermID
FROM tblTaskAudit INNER JOIN tblTerm ON tblTaskAudit.RecID = tblTerm.TermID
WHERE (((tblTerm.TermID)=[Forms]![frmTerm]![RecID]));
The Form which calls this report, frmTerm, has a value in RecID, but the
query the report is based on keeps prompting for the record ID, even though
the query criteria is that TermID = the forms's RecID.
I don't understand why the query keeps prompting? Once the data is entered
into the prompt, the report runs fine...just don't understans why it's
prompting me. tblTerm & tblTaskAudit are related via RecID.
Thanks.
I have a button on a subform which opens another form. This works fine, but
on the form that is opened, there is a button to preview a report. The
report is based on the following query:
SELECT tblTerm.*, tblTerm.TermID
FROM tblTaskAudit INNER JOIN tblTerm ON tblTaskAudit.RecID = tblTerm.TermID
WHERE (((tblTerm.TermID)=[Forms]![frmTerm]![RecID]));
The Form which calls this report, frmTerm, has a value in RecID, but the
query the report is based on keeps prompting for the record ID, even though
the query criteria is that TermID = the forms's RecID.
I don't understand why the query keeps prompting? Once the data is entered
into the prompt, the report runs fine...just don't understans why it's
prompting me. tblTerm & tblTaskAudit are related via RecID.
Thanks.