A Microsoft Office (Excel, Word) forum. OfficeFrustration

If this is your first visit, be sure to check out the FAQ by clicking the link above. You may have to register before you can post: click the register link above to proceed. To start viewing messages, select the forum that you want to visit from the selection below.

Go Back   Home » OfficeFrustration forum » Microsoft Access » Using Forms
Site Map Home Register Authors List Search Today's Posts Mark Forums Read  

Creating Top 10 in linked subform



 
 
Thread Tools Display Modes
  #1  
Old October 26th, 2009, 08:43 PM posted to microsoft.public.access.forms
Adam C.
external usenet poster
 
Posts: 2
Default Creating Top 10 in linked subform

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

  #2  
Old October 26th, 2009, 08:53 PM posted to microsoft.public.access.forms
Adam C.
external usenet poster
 
Posts: 2
Default Creating Top 10 in linked subform

Figured it out.

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


"Adam C." wrote:

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

 




Thread Tools
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

vB code is On
Smilies are On
[IMG] code is Off
HTML code is Off
Forum Jump


All times are GMT +1. The time now is 11:40 AM.


Powered by vBulletin® Version 3.6.4
Copyright ©2000 - 2024, Jelsoft Enterprises Ltd.
Copyright ©2004-2024 OfficeFrustration.
The comments are property of their posters.