473,421 Members | 1,642 Online
Bytes | Software Development & Data Engineering Community
Post Job

Home Posts Topics Members FAQ

Join Bytes to post your question to a community of 473,421 software developers and data experts.

Grouping and Sorting a report or form, Please Help

I've tried this on both a report and form and have had no luck.
I have 7 fields and am trying to group my form by 'Part Number' and then sort by 'Date Added' I have multiple of the same part
number (intentionally). Right now I have the 'Part Number' grouped together and my form/reports are sorted by 'Date Added' date first.
However, my problem is that I have to also sort by 'Part Number' using ascending or descending (it won't group my 'Part Number' together if I don't put ascending/descending). SO my form after running the query displays the 'Part Number' in groups, but it's not starting with the newest date added.

MY GOAL: Find a way to first put each part number into groups and then sort those groups by date with the newest 'Date Added' appearing first.

Thank you for your time

NOTE: As of right now if I remove the sort by, or if I move the 'Part Number' after the 'Date Added' field. Then the 'Part Number' column is not grouped together regardless of whether I have 'group by' selected.
Nov 18 '21 #1
1 7432
NeoPa
32,556 Expert Mod 16PB
Hi there - and welcome to Bytes.com.

Strangely enough, because most things that work for Forms work similarly for Reports, Sorting & Grouping is something that's quite different between the two.

In a Report the Group & Sort option is accessed from the Report Design toolbar. Simple enough I would expect. Let us know if you have any problems there.

In a Form the sorting (No grouping as such in Forms.) is managed first of all by the RecordSource but if there is an OrderBy property set then that will take precedence.

Again, hopefully, now you have that the rest should be straightforward. Obviously though, if you do struggle then come back and give a clear explanation of what you struggle with so we can help further.
Nov 18 '21 #2

Sign in to post your reply or Sign up for a free account.

Similar topics

1
by: El_Embozador | last post by:
Hi , please can you tell how i can print an MS ACCESS Report form visual basic, i ned a sample code .. Thanks
2
by: PC Datasheet | last post by:
Does anyone have a technique for grouping in a form like grouping in a report and still be able to enter data in the form? Thanks for all responses, Steve PC Datasheet
1
by: Peter | last post by:
Dear all, Could you give me a hint? a) I generate a report from a query table, then I want to use this report to show the total numbers of the customers who buy the goods. There is a string...
1
by: Samuel | last post by:
Why my Crystal Report form works on the machine I installed VB.NET, not works on the machine without VB.NET? Thanks.
0
by: neeraj | last post by:
Hi people's I developed One Windows application with some crystal Report I used my predefined crystal reports files for my application. I just take one crystal report viewer on form and set...
5
by: allystone99 | last post by:
Hi, Sorry to be a numpty! I'm pretty new to Access and there are a lot of things I haven't figured out yet. I'm using Access 97. I don't know anything about code or VB! Basically, I want a form...
12
by: Sol | last post by:
Hi gurus, I work for an oil company and need to fix an old DB, which used to work once. It will help us poor operators to do a safer job. What it does: When maintenance on a vessel is planned, the...
1
by: kkshansid | last post by:
i have some crystal reports but no related forms i made new simple form and copy pasted contents of a crystal report form to this new form and changed Dim Report As New CrystalReport6 according to...
1
by: Deepak Wadhwa | last post by:
how to make report with help of D2k in oracle?
0
BarryA
by: BarryA | last post by:
What are the essential steps and strategies outlined in the Data Structures and Algorithms (DSA) roadmap for aspiring data scientists? How can individuals effectively utilize this roadmap to progress...
1
by: nemocccc | last post by:
hello, everyone, I want to develop a software for my android phone for daily needs, any suggestions?
1
by: Sonnysonu | last post by:
This is the data of csv file 1 2 3 1 2 3 1 2 3 1 2 3 2 3 2 3 3 the lengths should be different i have to store the data by column-wise with in the specific length. suppose the i have to...
0
by: Hystou | last post by:
There are some requirements for setting up RAID: 1. The motherboard and BIOS support RAID configuration. 2. The motherboard has 2 or more available SATA protocol SSD/HDD slots (including MSATA, M.2...
0
marktang
by: marktang | last post by:
ONU (Optical Network Unit) is one of the key components for providing high-speed Internet services. Its primary function is to act as an endpoint device located at the user's premises. However,...
0
by: Hystou | last post by:
Most computers default to English, but sometimes we require a different language, especially when relocating. Forgot to request a specific language before your computer shipped? No problem! You can...
1
by: Hystou | last post by:
Overview: Windows 11 and 10 have less user interface control over operating system update behaviour than previous versions of Windows. In Windows 11 and 10, there is no way to turn off the Windows...
0
agi2029
by: agi2029 | last post by:
Let's talk about the concept of autonomous AI software engineers and no-code agents. These AIs are designed to manage the entire lifecycle of a software development project—planning, coding, testing,...
0
by: conductexam | last post by:
I have .net C# application in which I am extracting data from word file and save it in database particularly. To store word all data as it is I am converting the whole word file firstly in HTML and...

By using Bytes.com and it's services, you agree to our Privacy Policy and Terms of Use.

To disable or enable advertisements and analytics tracking please visit the manage ads & tracking page.