We help IT Professionals succeed at work.

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

182 Views
Last Modified: 2017-12-03
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
Comment
Watch Question

Bill PrewTest your restores, not your backups...
CERTIFIED EXPERT
Expert of the Year 2019
Top Expert 2016

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


»bp

Author

Commented:
Order By is blank,
Order by on Load is Yes.
Filter is bland,   and
Allow filter in No.
Pawan KumarDatabase Expert
Awarded 2016
Top Expert 2016

Commented:
Try setting the order by.
Bill PrewTest your restores, not your backups...
CERTIFIED EXPERT
Expert of the Year 2019
Top Expert 2016

Commented:
And the Query specifies a sort on the column you want, in ascending order?


»bp

Author

Commented:
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.
Bill PrewTest your restores, not your backups...
CERTIFIED EXPERT
Expert of the Year 2019
Top Expert 2016

Commented:
Any chance you can upload the Access file that has this problem?


»bp
CERTIFIED EXPERT
Distinguished Expert 2017
Commented:
This one is on us!
(Get your first solution completely free - no credit card required)
UNLOCK SOLUTION
CERTIFIED EXPERT
Most Valuable Expert 2015
Distinguished Expert 2018

Commented:
In fact, you should remove any sorting in the query and only specify ordering in the report itself.

/gustav

Author

Commented:
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.

Author

Commented:
I also Tried : Removing the sorting from the Query and still the same   !!!!!!!!
CERTIFIED EXPERT
Most Valuable Expert 2015
Distinguished Expert 2018
Commented:
This one is on us!
(Get your first solution completely free - no credit card required)
UNLOCK SOLUTION

Author

Commented:
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.

Author

Commented:
Thanks a lot.
Worked nicely.
CERTIFIED EXPERT
Most Valuable Expert 2015
Distinguished Expert 2018

Commented:
You are welcome!

/gustav

Gain unlimited access to on-demand training courses with an Experts Exchange subscription.

Get Access
Why Experts Exchange?

Experts Exchange always has the answer, or at the least points me in the correct direction! It is like having another employee that is extremely experienced.

Jim Murphy
Programmer at Smart IT Solutions

When asked, what has been your best career decision?

Deciding to stick with EE.

Mohamed Asif
Technical Department Head

Being involved with EE helped me to grow personally and professionally.

Carl Webster
CTP, Sr Infrastructure Consultant
Empower Your Career
Did You Know?

We've partnered with two important charities to provide clean water and computer science education to those who need it most. READ MORE

Ask ANY Question

Connect with Certified Experts to gain insight and support on specific technology challenges including:

  • Troubleshooting
  • Research
  • Professional Opinions
Unlock the solution to this question.
Join our community and discover your potential

Experts Exchange is the only place where you can interact directly with leading experts in the technology field. Become a member today and access the collective knowledge of thousands of technology experts.

*This site is protected by reCAPTCHA and the Google Privacy Policy and Terms of Service apply.

OR

Please enter a first name

Please enter a last name

8+ characters (letters, numbers, and a symbol)

By clicking, you agree to the Terms of Use and Privacy Policy.