G
Guest
I have a subform with a button which allows me to run a report using a
parameter from the form (a course booking reference id) I pass the data to a
query using the following script.
STUDY_LEAVE_RECS.ID=Forms![STUDY_LEAVE_RECS]![ID];
This format works ok when running the sub form as a stand alone form ( and
from other forms), but when the form is nested in the main form and run - the
script fails. How can I correct this?
I have tried altering the query to refer to the subform, but I don't seem to
be able to get the correct syntax. Can anyone please suggest the correct way.
Many thanks.
Peter
parameter from the form (a course booking reference id) I pass the data to a
query using the following script.
STUDY_LEAVE_RECS.ID=Forms![STUDY_LEAVE_RECS]![ID];
This format works ok when running the sub form as a stand alone form ( and
from other forms), but when the form is nested in the main form and run - the
script fails. How can I correct this?
I have tried altering the query to refer to the subform, but I don't seem to
be able to get the correct syntax. Can anyone please suggest the correct way.
Many thanks.
Peter