?
Solved

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

Posted on 2013-06-19
6
Medium Priority
?
395 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 51

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
Veeam Task Manager for Hyper-V

Task Manager for Hyper-V provides critical information that allows you to monitor Hyper-V performance by displaying real-time views of CPU and memory at the individual VM-level, so you can quickly identify which VMs are using host resources.

 
LVL 51

Accepted Solution

by:
Gustav Brock earned 2000 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 51

Expert Comment

by:Gustav Brock
ID: 39259761
You are welcome!

/gustav
0

Featured Post

Enterprise Mobility and BYOD For Dummies

Like “For Dummies” books, you can read this in whatever order you choose and learn about mobility and BYOD; and how to put a competitive mobile infrastructure in place. Developed for SMBs and large enterprises alike, you will find helpful use cases, planning, and implementation.

Question has a verified solution.

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

Preparing an email is something we should all take special care with – especially when the email is for somebody you may not know very well. The pressures of everyday working life stacked with a hectic office environment can make this a real challen…
It’s the first day of March, the weather is starting to warm up and the excitement of the upcoming St. Patrick’s Day holiday can be felt throughout the world.
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…
Polish reports in Access so they look terrific. Take yourself to another level. Equations, Back Color, Alternate Back Color. Write easy VBA Code. Tighten space to use less pages. Launch report from a menu, considering criteria only when it is filled…
Suggested Courses

764 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