Link to home
Avatar of Issa S.
Issa S.

asked on

Same query sorted on the ID showing correct Order on a Form and a Report but reversed order in a 2nd Report.

Hi all,

Same query sorted on the ID showing correct Order on a Form and a Report but reversed order in a 2nd Report.

I have a query having a sort order on the ID giving correct data when Viewed.
It is the source for a Form and Two Reports using the same results.
The Form and The First Report are showing the right data.
The 2nd report is also showing the same data but in Reversed Order!!!.
I checked and checked The SQL and design and I don't see any difference.

Help Please
Avatar of Bill Prew
Bill Prew

In the second form, could you have an "Order By" property set for the Data source of the report?


»bp
Avatar of Issa S.

ASKER

Order By is blank,
Order by on Load is Yes.
Filter is bland,   and
Allow filter in No.
Try setting the order by.
And the Query specifies a sort on the column you want, in ascending order?


»bp
Avatar of Issa S.

ASKER

Dear Pawan :

It does not give any option to change the Order By, remember I am talking about the 2nd Report.

To get things worst,  I matched the properties of the 2 reports and they are the same

Deaaar Bill,
Of course on the same field. The ID in both cases.
Any chance you can upload the Access file that has this problem?


»bp
SOLUTION
Avatar of PatHartman
PatHartman
Flag of United States of America image

Blurred text
THIS SOLUTION IS ONLY AVAILABLE TO MEMBERS.
View this solution by signing up for a free trial.
Members can start a 7-Day free trial and enjoy unlimited access to the platform.
See Pricing Options
Start Free Trial
In fact, you should remove any sorting in the query and only specify ordering in the report itself.

/gustav
Avatar of Issa S.

ASKER

Tell Me How Pls.  My  mind is stuck now.

Report Properties now are:

Order By is blank,
Order by on Load is Yes.
Filter is bland,   and
Allow filter in No.
Avatar of Issa S.

ASKER

I also Tried : Removing the sorting from the Query and still the same   !!!!!!!!
ASKER CERTIFIED SOLUTION
THIS SOLUTION IS ONLY AVAILABLE TO MEMBERS.
View this solution by signing up for a free trial.
Members can start a 7-Day free trial and enjoy unlimited access to the platform.
Avatar of Issa S.

ASKER

Sorry Bill for being away for a while but I agree on your suggestion to close the issue.
Thanks to ALL who contributed in this.
Avatar of Issa S.

ASKER

Thanks a lot.
Worked nicely.
You are welcome!

/gustav