Report sorting issue - need to change order

GOVMATE

Registered User.
Local time
Today, 02:47
Joined
Aug 10, 2007
Messages
71
Hello All,


I'm using MS Access 2003. I have a report that sorts alpha ascending but I want one the sort fields to be appear 1st and then ascend the remaining. For example the field that is being sorted at the second level starts with an "F" and the first level starts with an "E". I want "F" the sort first and then sort "E" and the remaining ascending. I have a attached a copy of my report design view. Any assistance would be greatly appreciated.

Thanks!
 

Attachments

  • Report prt scrn 1110.jpg
    Report prt scrn 1110.jpg
    100.6 KB · Views: 161
If you're using a query as the record source of your report, add this in there:
Code:
AliasField: IIF(Left([FieldName], 1) = "F", 1, IIF(Left([FieldName], 1) = "E", 2, 3))
Substitute [FieldName] with the name of the field and you can call AliasField anything you want except any of the field names.

Now you first of all sort by AliasField, followed by the field.
 
The record source is a table. Can you help?
 
Change it to a query. Remember a query can pull the fields from a table. Use the wizard to create the query and once you've done that set the Record Source to the query.
 
Hi VbaInet!

I really appreciate your help. I am going to try what you suggested.

Thanks again!
 

Users who are viewing this thread

Back
Top Bottom