L
larochy
I'm trying to use a Popup search form I built that allows the user to search
by three different options, Customer, InvoiceID, and Deferred Revenue ID.
Deferred Revenue ID is in a subform. In the After_Update event of each combo
box on the popup search form is a macro that opens the Invoice form and
executes the search using the Where clause in the Open Form action. It
works fine for both the Customer and Invoice which are located on the main
form but I can't get it to work for the Deferred Revenue ID located on the
subform. Is it even possible to search by a field on the subform? The two
forms are linked by the InvoiceID but one invoice can have hundreds of
Deferred Revenue ID's so I'm trying to help them go one level deeper in the
search. Here is my Where clause in the Open Form action on my macro.
[forms]![Invoice]![DeferredRevenue].[Form]![DeferredRevenueID]=[Forms]![Search]![Combo23]
Should I be using VBA in the After_Update event to perform the filter? If
so, please provide an example of the code needed to do this.
Thanks in advance
by three different options, Customer, InvoiceID, and Deferred Revenue ID.
Deferred Revenue ID is in a subform. In the After_Update event of each combo
box on the popup search form is a macro that opens the Invoice form and
executes the search using the Where clause in the Open Form action. It
works fine for both the Customer and Invoice which are located on the main
form but I can't get it to work for the Deferred Revenue ID located on the
subform. Is it even possible to search by a field on the subform? The two
forms are linked by the InvoiceID but one invoice can have hundreds of
Deferred Revenue ID's so I'm trying to help them go one level deeper in the
search. Here is my Where clause in the Open Form action on my macro.
[forms]![Invoice]![DeferredRevenue].[Form]![DeferredRevenueID]=[Forms]![Search]![Combo23]
Should I be using VBA in the After_Update event to perform the filter? If
so, please provide an example of the code needed to do this.
Thanks in advance