Solved

MS Access Need help with report not being able to sort users under date

Posted on 2013-06-19
6
388 Views
Last Modified: 2013-06-19
Please see attached database.

Run "frmReportByDate"
Input dates: 6/1/2013  -  6/30/2013
Click "Report"

Problem: I cannot get the user names to sort under the weekly date:
Dave
Dave
Dave
Nick
Nick
Joe
ReportTest---Copy.accdb
0
Comment
Question by:DJPr0
[X]
Welcome to Experts Exchange

Add your voice to the tech community where 5M+ people just like you are talking about what matters.

  • Help others & share knowledge
  • Earn cash & points
  • Learn & ask questions
  • 3
  • 2
6 Comments
 
LVL 77

Expert Comment

by:peter57r
ID: 39259306
Your main sort is on Refdate - that's what you are getting.

If you want to sort on a calculated field then add the calculated field to the recordsource query and then it is available in the report as a standard field which you can sort.
0
 
LVL 50

Expert Comment

by:Gustav Brock
ID: 39259348
That's not needed.

Your first sort is wrong. It is not the date but your grouping expression to sort on:

  =Format([refdate]-(([refdate]-2) Mod 7);"mmm dd")

The second sort is WEmployee.

/gustav
0
 

Author Comment

by:DJPr0
ID: 39259435
gustav - Did you post the correct grouping expression? The only difference is the semi-colon which gives me an error: The expression you entered contains invalid syntax.
0
Ransomware-A Revenue Bonanza for Service Providers

Ransomware – malware that gets on your customers’ computers, encrypts their data, and extorts a hefty ransom for the decryption keys – is a surging new threat.  The purpose of this eBook is to educate the reader about ransomware attacks.

 
LVL 50

Accepted Solution

by:
Gustav Brock earned 500 total points
ID: 39259536
Use a comma.

But the difference is that you didn't use that expression in the report's grouping and sorting.
You use it the group header but that's not enough.

/gustav
0
 

Author Closing Comment

by:DJPr0
ID: 39259654
Thanks gustav, that was it!
0
 
LVL 50

Expert Comment

by:Gustav Brock
ID: 39259761
You are welcome!

/gustav
0

Featured Post

Free Tool: SSL Checker

Scans your site and returns information about your SSL implementation and certificate. Helpful for debugging and validating your SSL configuration.

One of a set of tools we are providing to everyone as a way of saying thank you for being a part of the community.

Question has a verified solution.

If you are experiencing a similar issue, please ask a related question

As tax season makes its return, so does the increase in cyber crime and tax refund phishing that comes with it
Access developers frequently have requirements to interact with Excel (import from or output to) in their applications.  You might be able to accomplish this with the TransferSpreadsheet and OutputTo methods, but in this series of articles I will di…
Show developers how to use a criteria form to limit the data that appears on an Access report. It is a common requirement that users can specify the criteria for a report at runtime. The easiest way to accomplish this is using a criteria form that a…
In Microsoft Access, learn how to “cascade” or have the displayed data of one combo control depend upon what’s entered in another. Base the dependent combo on a query for its row source: Add a reference to the first combo on the form as criteria i…

739 members asked questions and received personalized solutions in the past 7 days.

Join the community of 500,000 technology professionals and ask your questions.

Join & Ask a Question