I have a form from which I print reports based on a single record. This works well when I use this form as a stand alone but when it is included as a subform, I get the message "Enter parameter value" The parameter that works when stand alone is Forms!Clinic Visit Record!PatiendID. What does this need to bring up the appropriate report when used a s a subform. Thanks.
The full line in question reads:
strDocName = "Clinic Visit Reocrd Query"
DoCmd.OpenReport stDocName, acViewPreview,,"[PatientID] = Forms![Clinic Visit Record]![PatientID]"
The main form is PatientDemographics and the two forms are linked through PatientID
[This message has been edited by Webster01 (edited 05-15-2002).]
The full line in question reads:
strDocName = "Clinic Visit Reocrd Query"
DoCmd.OpenReport stDocName, acViewPreview,,"[PatientID] = Forms![Clinic Visit Record]![PatientID]"
The main form is PatientDemographics and the two forms are linked through PatientID
[This message has been edited by Webster01 (edited 05-15-2002).]