How to

Z

Zahid

How can I in MS ACCESS, in certain report if I want to get the result, not
in ascending order, or decending order I Want that Name of

Managing director
Director
Director IT
Director Supply
Sales Representative
Cashier

In sequence Given up. How can achieve this?
 
G

George Nicholson

If you don't already have a "Positions" table, create one. Then, in
addition to the PositionName field create a field called "PositionOrder" or
Hierarchy Join this table to your report query but sort/group on the new
Hierarchy field.

You should establish referential integrity between tables to make sure that
the values in the Positions table are the only values allowable in the
Position field in Employees (or wherever they are). If you don't, your
report will be missing data or very confusing depending on how the tables
are joined in the query.

Hope this helps,
 
J

John Vinson

How can I in MS ACCESS, in certain report if I want to get the result, not
in ascending order, or decending order I Want that Name of

Managing director
Director
Director IT
Director Supply
Sales Representative
Cashier

In sequence Given up. How can achieve this?

One way is to have a calculated field in your Query:

SortKey: Choose([Fieldname] = "Managing director", 1,
[Fieldname] = "Director", 2,
[Fieldname] = "Director IT", 3,
....

and so on, where Fieldname is the name of the field containing the
position name. Sort by this calculated field.
 

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