Order by Problem

Jmsteph

Registered User.
Local time
Today, 02:39
Joined
Dec 2, 2008
Messages
28
Hello,

The following code will pull all of the funds that match to the product. The problem is I can not get them to sort by the FundName. Can someone show me where to add the order by into the following code so it sorts correctly as I just cant figure it out? Thanks!!!!

SELECT [TradeFundInfo].[FundName] FROM [TradeFundInfo] WHERE ((([TradeFundInfo].[Product])=[Forms]![CallLogNewTrade]!ProductCombo])));
 
You could just add it in design view of the query, but this should work:

SELECT [TradeFundInfo].[FundName] FROM [TradeFundInfo] WHERE ((([TradeFundInfo].[Product])=[Forms]![CallLogNewTrade]!ProductCombo]))) ORDER BY FundName
 
That worked perfectly. Thanks!!!!
 

Users who are viewing this thread

Back
Top Bottom