473,326 Members | 2,010 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,326 software developers and data experts.

Sorting Results in a Report based on a selection

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:

Expand|Select|Wrap|Line Numbers
  1.  [Forms]![frm FVQ main]![cboSortBy] 
and even
Expand|Select|Wrap|Line Numbers
  1.  =[Forms]![frm FVQ main]![cboSortBy] 
and also (maybe out of desparation),
Expand|Select|Wrap|Line Numbers
  1.  =[[Forms]![frm FVQ main]![cboSortBy]] 
into the 'Order By' field on the properties of the report but to no avail, then i tried with the same code in the 'Sorting and Grouping' box but again, no sorting.
Im sure there is something simple that im missing, is there anyone who can suggest something??

I am using Access '97.
Jun 8 '07 #1
2 1394
puppydogbuddy
1,923 Expert 1GB
Hi Jon,

See if these links help:

This link shows you step by step how :

http://www.fabalou.com/Access/Reports/sortorder.asp


See also:
http://www.thescripts.com/forum/thread659192.html
Jun 10 '07 #2
Hi Jon,

See if these links help:

This link shows you step by step how :

http://www.fabalou.com/Access/Reports/sortorder.asp


See also:
http://www.thescripts.com/forum/thread659192.html

Cheers, the 'fabalou' explanation worked. (not that im saying the scripts suggestion wasnt also good mind !!)
Jun 13 '07 #3

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

Similar topics

1
by: Mike MacSween | last post by:
tblProductions one to many to tblEvents tblEvents contains StartDate I want a report where the data are grouped by tblProductions.ProdID, and sorted by the earliest date in each Production. ...
8
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...
5
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,...
2
by: Tim Marshall | last post by:
Access 2003. The situation is this: I have a "criteria selection form" in which there are a many different criteria, mostly displayed as combo and text boxes in which a user can enter stuff,...
0
by: Brian Henry | last post by:
Here is another virtual mode example for the .NET 2.0 framework while working with the list view. Since you can not access the items collection of the list view you need to do sorting another...
6
by: Bob Alston | last post by:
I am looking for Access reporting add-in that would be easy to use by end users. My key focus is on selection criteria. I am very happy with the Access report writer capabilities. As far as...
3
by: Tim Olson | last post by:
I'm using a form to pass parameters to a query, with results displayed in a report. Currently, I'm using parameters as filter criteria in the query, and everything is running smoothly (or so it...
11
by: Trent | last post by:
Running this I see that on first run, both bubble and selection sort have 9 sort counts while insertion sort has ZERO. With a sorted list, should this be ZERO for all? Also bsort and Ssort have...
4
by: Trent | last post by:
Still have problems with this thing. Seems my results are not matching the "correct" example given. The three sets of numbers below the last 3 columns is suppose to be the number of comparisons...
0
by: DolphinDB | last post by:
Tired of spending countless mintues downsampling your data? Look no further! In this article, you’ll learn how to efficiently downsample 6.48 billion high-frequency records to 61 million...
0
by: ryjfgjl | last post by:
ExcelToDatabase: batch import excel into database automatically...
0
isladogs
by: isladogs | last post by:
The next Access Europe meeting will be on Wednesday 6 Mar 2024 starting at 18:00 UK time (6PM UTC) and finishing at about 19:15 (7.15PM). In this month's session, we are pleased to welcome back...
1
isladogs
by: isladogs | last post by:
The next Access Europe meeting will be on Wednesday 6 Mar 2024 starting at 18:00 UK time (6PM UTC) and finishing at about 19:15 (7.15PM). In this month's session, we are pleased to welcome back...
0
by: Vimpel783 | last post by:
Hello! Guys, I found this code on the Internet, but I need to modify it a little. It works well, the problem is this: Data is sent from only one cell, in this case B5, but it is necessary that data...
0
by: ArrayDB | last post by:
The error message I've encountered is; ERROR:root:Error generating model response: exception: access violation writing 0x0000000000005140, which seems to be indicative of an access violation...
1
by: PapaRatzi | last post by:
Hello, I am teaching myself MS Access forms design and Visual Basic. I've created a table to capture a list of Top 30 singles and forms to capture new entries. The final step is a form (unbound)...
0
by: af34tf | last post by:
Hi Guys, I have a domain whose name is BytesLimited.com, and I want to sell it. Does anyone know about platforms that allow me to list my domain in auction for free. Thank you
0
by: Faith0G | last post by:
I am starting a new it consulting business and it's been a while since I setup a new website. Is wordpress still the best web based software for hosting a 5 page website? The webpages will be...

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.