I have a query that I have that generates a report from one particular form that is opened.
I have several different forms that have the main form and a subform within the form. The subform on each is what is different. I would like to have it so that it can generate the report from any of the forms.
The problem that I have is that the particular field that the query is using is in the subform. The criteria that I have in the query is: [Forms]![Hotels_Customers_pending]![Complaints Subform].[Form]![ComplaintID]
Is there a way that I could "eliminate" the [Forms]![Hotels_Customers_pending] portion? All of the subforms are named [Complaints Subform].
I have several different forms that have the main form and a subform within the form. The subform on each is what is different. I would like to have it so that it can generate the report from any of the forms.
The problem that I have is that the particular field that the query is using is in the subform. The criteria that I have in the query is: [Forms]![Hotels_Customers_pending]![Complaints Subform].[Form]![ComplaintID]
Is there a way that I could "eliminate" the [Forms]![Hotels_Customers_pending] portion? All of the subforms are named [Complaints Subform].