I'm stumped on this one.
I have a report that shows production calculations for a user-selected
period divided up into weeks. Currently, I just use
format([MyField],"ww") to get the calendar week for the purposes of
grouping the data. However, my users would rather that I display the
number of the week in the period they've selected. If, for instance,
they select 2/1/2006 to 2/28/2006, they want to see "Week 1," "Week 2,"
"Week 3," etc. rather than the actual calendar weeks of 5, 6, 7, and 8.
Hope that makes sense.
Any ideas how I'd go about doing this? Thanks in advance for any
suggestions.
-Josh Nikle 2 1764
<jn****@gmail.com> wrote in message
news:11*********************@z14g2000cwz.googlegro ups.com... I'm stumped on this one.
I have a report that shows production calculations for a user-selected period divided up into weeks. Currently, I just use format([MyField],"ww") to get the calendar week for the purposes of grouping the data. However, my users would rather that I display the number of the week in the period they've selected. If, for instance, they select 2/1/2006 to 2/28/2006, they want to see "Week 1," "Week 2," "Week 3," etc. rather than the actual calendar weeks of 5, 6, 7, and 8. Hope that makes sense.
Any ideas how I'd go about doing this? Thanks in advance for any suggestions.
-Josh Nikle
If you set a variable equal to the first date (dt1 = #2/1/2006#)
then use
Format([MyField],"ww") - Format(dt1,"ww") + 1
Hope That Helps,
Fred Zuckerman
On 17 Feb 2006 08:12:42 -0800, jn****@gmail.com wrote: I'm stumped on this one.
I have a report that shows production calculations for a user-selected period divided up into weeks. Currently, I just use format([MyField],"ww") to get the calendar week for the purposes of grouping the data. However, my users would rather that I display the number of the week in the period they've selected. If, for instance, they select 2/1/2006 to 2/28/2006, they want to see "Week 1," "Week 2," "Week 3," etc. rather than the actual calendar weeks of 5, 6, 7, and 8. Hope that makes sense.
Any ideas how I'd go about doing this? Thanks in advance for any suggestions.
-Josh Nikle
"Week " & Format([MyField],"ww")
Wayne Gillespie
Gosford NSW Australia This thread has been closed and replies have been disabled. Please start a new discussion. Similar topics
by: Russ |
last post by:
I've got a report that puts dates at the top of columns and the user
is prompted to enter a beginning date when the report is opened. That
date is put in a textbox in the first column like this:
...
|
by: David Olsen |
last post by:
Would any of you kind souls now how to put into an unbound text box
the week commencing date for the current week which you are in, so
that the report heading would say something like for example,...
|
by: Peter Bailey |
last post by:
I have a query that returns , and :
12/05/04 3 Wednesday
13/05/04 0 Thursday
and so on
what I would like to do now is count the number of bookings by week so from
monday to...
|
by: John |
last post by:
Hi
I have a report which lists staff hours for various dates. What could be a
way to assign to each entry the week of the month that the date for the
entry belongs to?
Thanks
Regards
|
by: ChadDiesel |
last post by:
Hello everyone,
I'm having a problem with Access that I need some help with. The short
version is, I want to print a list of parts and part quantities that belong
to a certain part group---One...
|
by: jnikle |
last post by:
I have a parameter query named "qry_employee_info_reports" that I need
to run in the OnOpen event of a form. I'm after its total number of
records. The query's got several joins in it, and one of...
|
by: bruce24444 |
last post by:
I have a database which assigns warranty claims to people with a main screen showing number of files assigned to each person. The number assigned shows day, week, month and year numbers so they can...
|
by: den4673 |
last post by:
Hello, I am hoping someone can help me and tell me how to correct my
problem.
My report is based on an Invoice query, where each invoice has a date,
amount and corresponding week number. In the...
|
by: Christina123 |
last post by:
I don't actually need the code for this...yet. Essentially I need to know if what I want to do can be done.
I have two work books. One is a report the other contains the data that the report is...
|
by: Charles Arthur |
last post by:
How do i turn on java script on a villaon, callus and itel keypad mobile phone
|
by: BarryA |
last post by:
What are the essential steps and strategies outlined in the Data Structures and Algorithms (DSA) roadmap for aspiring data scientists? How can individuals effectively utilize this roadmap to progress...
|
by: Hystou |
last post by:
There are some requirements for setting up RAID:
1. The motherboard and BIOS support RAID configuration.
2. The motherboard has 2 or more available SATA protocol SSD/HDD slots (including MSATA, M.2...
|
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,...
|
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...
|
by: Oralloy |
last post by:
Hello folks,
I am unable to find appropriate documentation on the type promotion of bit-fields when using the generalised comparison operator "<=>".
The problem is that using the GNU compilers,...
|
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...
|
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...
|
by: agi2029 |
last post by:
Let's talk about the concept of autonomous AI software engineers and no-code agents. These AIs are designed to manage the entire lifecycle of a software development project—planning, coding, testing,...
| |