Creating Top 10 in linked subform

A

Adam C.

I've created a customer database that contains customer info and sales
history. I have a customer form that on one of the tabs is supposed to show
the top 10 products purchased based on total revenue. This is a subform with
CustomerID fields linked. The underlying query in the subform contains
CustomerID, Partnumber, Description, Quantity (summed), and Revenue (summed
and ascending).

When I open the main form and go to the tab, my subform is blank.

The query works if I manually enter a filter for a particular CustomerID.
(It will show that customer's top 10 products). But when I try to run it form
the form, it doesn't.

Any suggestions?

Thanks,
Adam
 
A

Adam C.

Figured it out.

Put the following in the Criteria of my query for CustomerID:
[Forms]![frmCustomers]![idsCustomerID]
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Top