Want to protect your cyber security and still get fast solutions? Ask a secure question today.Go Premium

x
?
Solved

How can I create group by week numbers in a schedule?

Posted on 2008-11-18
8
Medium Priority
?
713 Views
Last Modified: 2012-05-05
I am trying to create a report of a base roster so that a person might be able to print out all the work they have to do over the cycle.  I've managed to report according to date, and group weekly by date.  However I am trying to input a count of week numbers

Week 1
                        Sunday 14/01/2008 <0>
                        Monday 15/01/2008  E
                        Tuesday 16/01/2008 E
                        <...>
Week 2
                        Sunday 21/01/2008 <0>
                        Monday 22/01/2008  E
                        Tuesday 23/01/2008 E
                        <...>
etc.

The dates exist in the database, but the week numbers do not, so I need some way of calculating them I think!

Many thanks in advance
0
Comment
Question by:k1ss0ff
  • 3
  • 2
  • 2
7 Comments
 
LVL 77

Expert Comment

by:peter57r
ID: 22983705
I don't think I understand how you are defining week 1.
0
 

Author Comment

by:k1ss0ff
ID: 22984383
Sorry, there is a template start date week 1 starts on the Sunday which is the template start date...
0
 
LVL 77

Expert Comment

by:peter57r
ID: 22984740
How does the report know what date week 1 starts on?
Is it hard coded into a variable or is it on the input data or what?
0
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.

 
LVL 101

Expert Comment

by:mlmcc
ID: 22986693
If the first is the first group in the report, you can use the special field GroupNumber to get the week number.

mlmcc
0
 

Accepted Solution

by:
k1ss0ff earned 0 total points
ID: 23094225
I managed to work it out using a formula -

int(({CURRENT_DATE_FIELD}-{TEMPLATE.STARTDATE})/7)+1
0
 
LVL 101

Expert Comment

by:mlmcc
ID: 23140060
Recommend this be closed with no points to experts.  The comment from mlmcc has nothing to do with the final answer

mlmcc
0
 
LVL 101

Expert Comment

by:mlmcc
ID: 23170801
This should be PAQ/Refund.  The suggested comment has nothing to do with the answer

mlmcc
0

Featured Post

Free Tool: Path Explorer

An intuitive utility to help find the CSS path to UI elements on a webpage. These paths are used frequently in a variety of front-end development and QA automation tasks.

One of a set of tools we're offering 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

Hot fix for .Net Crystal Reports 10.2.3600.0 to fix problems with sub reports running on 64 bit operating systems ISSUE: Reports which contain subreports fail with error "Missing Parameter Value" DEPLOYMENT SERVER OS: Windows 2008 with 64 bi…
There have always been a lot of questions related to when Crystal Reports evaluates report components (such as formulas, summaries, cross-tabs, charts, to name a few examples). Crystal Reports uses a two-pass reporting process to provide greater …
Exchange organizations may use the Journaling Agent of the Transport Service to archive messages going through Exchange. However, if the Transport Service is integrated with some email content management application (such as an anti-spam), the admin…
This lesson discusses how to use a Mainform + Subforms in Microsoft Access to find and enter data for payments on orders. The sample data comes from a custom shop that builds and sells movable storage structures that are delivered to your property. …

564 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