Results 1 to 2 of 2
  1. #1
    dr223 is offline Novice
    Windows XP Access 2003
    Join Date
    Mar 2010

    Order By Problem


    I am working with Access 2003 and have the following problem when I try to order by - WSM Score.

    1) Message box - Enter Parameter value when I click Ok
    2) It is not arranged in WSM Score


    WSM Score

    The order is still retained any help please

    SELECT TblBusTyp.BusinnesType, [%Cri1]*[Weight1] AS [Calc %Cri1], [%Cri2]*[Weight2] AS [Calc %Cri2], [%Cri3]*[Weight3] AS [Calc %Cri3], [%Cri4]*[Weight4] AS [Calc %Cri4], [Calc %Cri1]+[Calc %Cri2]+[Calc %Cri3]+[Calc %Cri4] AS [WSM Score]
    FROM TblBusTyp, QryALLQs
    ORDER BY [WSM Score] DESC;
    Thank you

  2. #2
    pbaldy's Avatar
    pbaldy is offline Who is John Galt?
    Windows XP Access 2007
    Join Date
    Feb 2010
    Nevada, USA
    The problem is that the ORDER BY clause is evaluated before the SELECT clause, so aliased field names are unknown at that point. Your simplest solution is probably to leave this query without the sorting, and base a second query on this one and do the sorting there.
    Paul (wino moderator)
    MS Access MVP 2007-2019

Please reply to this thread with any new information or opinions.

Similar Threads

  1. Tab Order Problem
    By Mahavir in forum Access
    Replies: 9
    Last Post: 12-29-2011, 08:34 AM
  2. Order Tracking
    By aladrach in forum Access
    Replies: 9
    Last Post: 07-01-2011, 02:04 PM
  3. Id Order
    By Rockin-John in forum Forms
    Replies: 15
    Last Post: 05-03-2011, 02:39 PM
  4. attributes out of order
    By Dornenhexe in forum Queries
    Replies: 9
    Last Post: 07-12-2010, 02:36 PM
  5. Order by
    By cowboy in forum Access
    Replies: 2
    Last Post: 05-03-2010, 05:04 PM

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
Other Forums: Microsoft Office Forums - Senior Forums