473,748 Members | 2,361 Online
Bytes | Software Development & Data Engineering Community
+ Post

Home Posts Topics Members FAQ

Sorting and Grouping Report - Please HELP!

Hi Guys,

My "Sorting and Grouping" in my report looks like this:

Field/Expression Sort Order
sID Ascending
((= Project Name Ascending
User *** Ascending
((= rID Ascending

The "((=" is Group Header = Yes

I have a form that has a 'create report' button that opens this report.

I am trying to make a list/combo box in the same form that the user can choose a field and when they click the 'create report' button it will change the third field (***) to whatever the user selected in the list.

eg. i want to be able to have the same report sorted by Priority or Status or User etc...

Is this possible? does anyone know the code i can use in the 'create report' button...

Thanks for any suggestions!

--
Message posted via http://www.accessmonster.com
Nov 13 '05 #1
1 2473
Here is an example from the Help file that I believe does what you are
asking.

Private Sub Report_Open(Can cel As Integer)
Me.GroupLevel(0 ).ControlSource _
= Forms!SortForm! txtPromptYou
End Sub

The index number for the third group, where you have User, would be 2. You
can also add a new group level with the CreateGroupLeve l method of the
Application object.

--
Wayne Morgan
MS Access MVP
"Jon via AccessMonster.c om" <fo***@AccessMo nster.com> wrote in message
news:a7******** *************** *******@AccessM onster.com...
Hi Guys,

My "Sorting and Grouping" in my report looks like this:

Field/Expression Sort Order
sID Ascending
((= Project Name Ascending
User *** Ascending
((= rID Ascending

The "((=" is Group Header = Yes

I have a form that has a 'create report' button that opens this report.

I am trying to make a list/combo box in the same form that the user can
choose a field and when they click the 'create report' button it will
change the third field (***) to whatever the user selected in the list.

eg. i want to be able to have the same report sorted by Priority or Status
or User etc...

Is this possible? does anyone know the code i can use in the 'create
report' button...

Thanks for any suggestions!

--
Message posted via http://www.accessmonster.com

Nov 13 '05 #2

This thread has been closed and replies have been disabled. Please start a new discussion.

Similar topics

8
3536
by: Mike MacSween | last post by:
tblCourses one to many to tblEvents. A course may have an intro workshop (a type of event), a mid course workshop, a final exam. Or any combination. Or something different in the future. At the moment the printed output is usually going to Word. It's turning into an unholy mess, because I'm having to prepare umpteen different Word templates, and the queries that drive them, depending on what events a course has.
4
9297
by: Marie | last post by:
My report has a text field named ItemNum. Most records have a value for ItemNum. I set Grouping And Sorting to sort ascending on the ItemNum field. The records where ItemNum is Null appear at the top of the list in the report. I want the records that have a value for ItemNum to be first in the report and sorted ascending and I want the records where ItemNum is Null to be at the end of the report. How do I do this? Thanks for all help! ...
5
2017
by: Mike | last post by:
Hello All, I have a report based upon a query. I have added a control to report footer that calcs the total cost of the inventory: =SUM(). When this total calculation is NOT on the report, the report displays as it should in ascending order by inventory number (inv_num). 1102 1103
8
4670
by: nn0410 | last post by:
I have a report whose record source is a query. The query includes an ORDER BY clause that sorts on a particular set of columns. I would like to be able to run the same report with the same input data, sorted on a different set of columns. Aside from copying (^C, ^V) the report and changing the Record Source property in the new copy to another query, is there an elegant way to accomplish this? Thanks Rick
3
5420
by: Jimmy | last post by:
Is there a way to sort/group a report based on the second column of a combo box, i.e. the text associated with the primary key number?
3
2397
by: Don | last post by:
I have a "Report" that is created from a "Form". It prints a list of items, you may consider it a shopping list. In any event I use to run this in alphabetical order but have since decided to run it as it comes from the form (random order). My problem is I don't know how to make this happen. The report is sorted in ascending order and I don't know how to change that. I see only two options, ascending or descending. Can you help?...
2
1420
by: jonosborne | last post by:
Hi, i have literally been racking my brain about this one and i think i need some help. I have a report which is produced when a button on a form is pressed. The report has many fields and records and i want the user to decide how to sort the report. I have started with a combo box which has a few values in it, all spelt the same as the field headings in the query (where the report is generated from). I have tried adding the code: !! ...
5
2398
by: Gumbyu | last post by:
Hello all, I have been working on this issue for about a week and still cannot get anything to group or sort. At this point, I just want to be able to group a report by using a 'checkbox' on a form. This form is for reporting and I need to be able to group using different columns in my report. The first question I have is, should the following grouping code be placed in the reportopen sub (of the report) or in the onclick sub (of the form)....
4
3006
by: kstevens | last post by:
I have a report, and on the report is a min, avg, and max query each with (ok who really cares) 20 or so records. At the footer of the report i would like to have a total. I requery for each record, and now i am copletely lost at how to add temporary (query) values, once they are finished. Please Help!! Seriously, i will be forever grateful. I am assuming that i have provided enough information. If I havent, please let me know. ...
0
8984
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, people are often confused as to whether an ONU can Work As a Router. In this blog post, we’ll explore What is ONU, What Is Router, ONU & Router’s main usage, and What is the difference between ONU and Router. Let’s take a closer look ! Part I. Meaning of...
0
8823
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 effortlessly switch the default language on Windows 10 without reinstalling. I'll walk you through it. First, let's disable language synchronization. With a Microsoft account, language settings sync across devices. To prevent any complications,...
0
9363
jinu1996
by: jinu1996 | last post by:
In today's digital age, having a compelling online presence is paramount for businesses aiming to thrive in a competitive landscape. At the heart of this digital strategy lies an intricately woven tapestry of website design and digital marketing. It's not merely about having a website; it's about crafting an immersive digital experience that captivates audiences and drives business growth. The Art of Business Website Design Your website is...
1
9312
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 Update option using the Control Panel or Settings app; it automatically checks for updates and installs any it finds, whether you like it or not. For most users, this new feature is actually very convenient. If you want to control the update process,...
0
9238
tracyyun
by: tracyyun | last post by:
Dear forum friends, With the development of smart home technology, a variety of wireless communication protocols have appeared on the market, such as Zigbee, Z-Wave, Wi-Fi, Bluetooth, etc. Each protocol has its own unique characteristics and advantages, but as a user who is planning to build a smart home system, I am a bit confused by the choice of these technologies. I'm particularly interested in Zigbee because I've heard it does some...
0
4593
by: TSSRALBI | last post by:
Hello I'm a network technician in training and I need your help. I am currently learning how to create and manage the different types of VPNs and I have a question about LAN-to-LAN VPNs. The last exercise I practiced was to create a LAN-to-LAN VPN between two Pfsense firewalls, by using IPSEC protocols. I succeeded, with both firewalls in the same network. But I'm wondering if it's possible to do the same thing, with 2 Pfsense firewalls...
0
4864
by: adsilva | last post by:
A Windows Forms form does not have the event Unload, like VB6. What one acts like?
1
3300
by: 6302768590 | last post by:
Hai team i want code for transfer the data from one system to another through IP address by using C# our system has to for every 5mins then we have to update the data what the data is updated we have to send another system
2
2775
muto222
by: muto222 | last post by:
How can i add a mobile payment intergratation into php mysql website.

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.