I am having a problem grouping by week. I am looking for the
simpliest way of doing it in Microsoft Access. I have tried to use a
pre-loaded calender, access did not like it at all. If there is
another way of counting the number of ProblemCounts with a single
week, by using DatePart etc. Give me a shout. Thanks.
Something similar to
Before:
Date ProblemCount
--------- ---------
10/02/04 2
10/04/04 4
10/08/04 3
10/16/04 1
11/02/04 3
11/03/04 1
AFTER:
Week Of ProblemCount
--------- ----------
10/07/04 6
10/14/04 3
10/21/04 1
10/28/04 0
11/04/04 4 4 1738
First, change the name of the "Date" field to anpther name. "Date" is a reserved
word in Access and using it will give you problems!
Create a query and put the following expression in the first field:
WeekNum:Format([NameOfDateField],"ww")
Put ProblemCount in second field.
Change the query to a totals query by clicking the Sigma button on the toolbar
at the top of the screen. (Looks like a capital "E"). Under ProblemCounts,
change Group By to Count. Run the query.
--
PC Datasheet
Your Resource For Help With Access, Excel And Word Applications re******@pcdata sheet.com www.pcdatasheet.com
"Alicia" <al******@hotma il.com> wrote in message
news:d3******** *************** ***@posting.goo gle.com... I am having a problem grouping by week. I am looking for the simpliest way of doing it in Microsoft Access. I have tried to use a pre-loaded calender, access did not like it at all. If there is another way of counting the number of ProblemCounts with a single week, by using DatePart etc. Give me a shout. Thanks.
Something similar to
Before:
Date ProblemCount --------- --------- 10/02/04 2 10/04/04 4 10/08/04 3 10/16/04 1 11/02/04 3 11/03/04 1
AFTER:
Week Of ProblemCount --------- ---------- 10/07/04 6 10/14/04 3 10/21/04 1 10/28/04 0 11/04/04 4 al******@hotmai l.com (Alicia) wrote in message news:<d3******* *************** ****@posting.go ogle.com>... I am having a problem grouping by week. I am looking for the simpliest way of doing it in Microsoft Access. I have tried to use a pre-loaded calender, access did not like it at all. If there is another way of counting the number of ProblemCounts with a single week, by using DatePart etc. Give me a shout. Thanks.
simplest way - let Access do it in a report. Group by the date, then
choose week, or do it in a query and do something like this...
SELECT tblVouchers.Dat eCreated,
DateSerial(Year ([datecreated]),1,Day([datecreated])) AS WeekNo,
DateDiff("ww",[weekno],[datecreated])+1 AS Expr1
FROM tblVouchers; al******@hotmai l.com (Alicia) wrote in message news:<d3******* *************** ****@posting.go ogle.com>... I am having a problem grouping by week. I am looking for the simpliest way of doing it in Microsoft Access. I have tried to use a pre-loaded calender, access did not like it at all. If there is another way of counting the number of ProblemCounts with a single week, by using DatePart etc. Give me a shout. Thanks.
simplest way - let Access do it in a report. Group by the date, then
choose week, or do it in a query and do something like this...
SELECT tblVouchers.Dat eCreated,
DateSerial(Year ([datecreated]),1,Day([datecreated])) AS WeekNo,
DateDiff("ww",[weekno],[datecreated])+1 AS Expr1
FROM tblVouchers; pi********@hotm ail.com (Pieter Linden) wrote in message news:<bf******* *************** ***@posting.goo gle.com>... al******@hotmai l.com (Alicia) wrote in message news:<d3******* *************** ****@posting.go ogle.com>... I am having a problem grouping by week. I am looking for the simpliest way of doing it in Microsoft Access. I have tried to use a pre-loaded calender, access did not like it at all. If there is another way of counting the number of ProblemCounts with a single week, by using DatePart etc. Give me a shout. Thanks. simplest way - let Access do it in a report. Group by the date, then choose week, or do it in a query and do something like this...
SELECT tblVouchers.Dat eCreated, DateSerial(Year ([datecreated]),1,Day([datecreated])) AS WeekNo, DateDiff("ww",[weekno],[datecreated])+1 AS Expr1 FROM tblVouchers;
Yes, but will that skip a week and group by the date for me? I
basically wanted something that would do a count of the dates, then
group them by their week name..
BEFORE:
Resource Date Total number of times that date Appeared
(Count)
4/3/03 4
4/4/03 2 (note 4/4/03 showed up
twice)
4/9/03 1
4/10/03 7
I WANT TO CREATE THIS RESULT:
Resource Date CountbyWeek
4/7/03 6 (The first week of the
month)
4/14/03 8 (second week)
I am basically doing this stuff for charting purposes, so I can create
bar graphs was my data by weeks of the month instead of everyday. This thread has been closed and replies have been disabled. Please start a new discussion. Similar topics |
by: Shlomi Schwartz |
last post by:
Hi all,
Why do I get the folowing date when creating it like so:
var d = new Date(2003,9,2);
Wed Oct 1 23:00:00 UTC+0200 2003
Isent it soposed to be:
|
by: edwardfredriks |
last post by:
I'm looking for a script that, instead of counting down, can "count up"
from a given date. So the output should be something like "(xx) days
since (date/event)" or "(date/event) was (xx) days ago".
Does anybody know where to find a script like that, or could someone
code one for me?
Thanks in advance.
Yours,
|
by: none |
last post by:
I have managed to get the below script *almost* working. However, it
still has a problem calculating the number of months. The date I am
trying to calculate from is Oct 15, 1994. With the correct "thatmonth"
(10) it displays 0. With 9 it displays 2, instead of 1 which would be
correct.
Any suggestions?
=== Cut ===
<script language=Javascript type=text/javascript class="smalltext">
|
by: jpr |
last post by:
Friends, I have a form with four fields, date1, date2, date3 and date4.
All these have all a mm/dd/yyyy format and have their source to a
table.
I need to add an unbound control (I will name it txtresult) which will
count in months and years the difference between the dates.
Ex.
date1: 01/01/1970
|
by: |
last post by:
Why is my progress bar displayed only after it's reached 100%?
<html>
<style type="text/css">
#bar{
width: 10px;
height: 14px;
color: white;
font-size: 12px;
overflow: hidden;
| |
by: MLH |
last post by:
With a table of holidays and A97's date fn's - how best to count
weekends and holidays between two dates? My holiday table
has 4 fields. I will be adding records to it each year as info
becomes known.
What approach would you advise to tally up the number
of holidays, saturdays and sundays between any 2 dates
in the range of my records in this table?
|
by: ambelkar |
last post by:
hi,
I trying to join weekly & daily tables by using end_dte,Rpt_dte respectively.My week is saturday to friday.first table only having week end' dates but the 2 daily table having daily dates .when I trying to join 2 tables using the following condition
weekly.end_dte=Next_day(daily.rpt_dte,'FRI')
only for this friday's date it displays next friday's date.
for ex: 7th is friday when I give next_day('04-05-2007', 'fri') , it should...
|
by: Lucas_london via AccessMonster.com |
last post by:
Hi
I have set up a database/tables in Access based on daily timeseries data.
However I would like to create two additional columns in the table as a basis
to pull the data on a weekly and monthly series basis.
Currently, in excel I am using the weekday and EOMONTH functions to create
the flags/indicator in my excel dataset:
(Cells in column A contains daily dates)
|
by: aszush |
last post by:
//Title: Programming Assignment 1
//Version:
//Copyright: Copyright (c) 1999
//Author: Andrew
//Company:
//Description: Computes employee's weekly gross and net pay.
package prog1;
import javax.swing.JOptionPane;
|
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 effortlessly switch the default language on Windows 10 without reinstalling. I'll walk you through it.
First, let's disable language synchronization. With a Microsoft account, language settings sync across devices. To prevent any complications,...
|
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 tapestry of website design and digital marketing. It's not merely about having a website; it's about crafting an immersive digital experience that captivates audiences and drives business growth.
The Art of Business Website Design
Your website is...
| |
by: tracyyun |
last post by:
Dear forum friends,
With the development of smart home technology, a variety of wireless communication protocols have appeared on the market, such as Zigbee, Z-Wave, Wi-Fi, Bluetooth, etc. Each protocol has its own unique characteristics and advantages, but as a user who is planning to build a smart home system, I am a bit confused by the choice of these technologies. I'm particularly interested in Zigbee because I've heard it does some...
|
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, and deployment—without human intervention. Imagine an AI that can take a project description, break it down, write the code, debug it, and then launch it, all on its own....
Now, this would greatly impact the work of software developers. The idea...
|
by: isladogs |
last post by:
The next Access Europe User Group meeting will be on Wednesday 1 May 2024 starting at 18:00 UK time (6PM UTC+1) and finishing by 19:30 (7.30PM).
In this session, we are pleased to welcome a new presenter, Adolph Dupré who will be discussing some powerful techniques for using class modules.
He will explain when you may want to use classes instead of User Defined Types (UDT). For example, to manage the data in unbound forms.
Adolph will...
|
by: TSSRALBI |
last post by:
Hello
I'm a network technician in training and I need your help.
I am currently learning how to create and manage the different types of VPNs and I have a question about LAN-to-LAN VPNs.
The last exercise I practiced was to create a LAN-to-LAN VPN between two Pfsense firewalls, by using IPSEC protocols.
I succeeded, with both firewalls in the same network. But I'm wondering if it's possible to do the same thing, with 2 Pfsense firewalls...
|
by: adsilva |
last post by:
A Windows Forms form does not have the event Unload, like VB6. What one acts like?
|
by: 6302768590 |
last post by:
Hai team
i want code for transfer the data from one system to another through IP address by using C# our system has to for every 5mins then we have to update the data what the data is updated we have to send another system
| |
by: bsmnconsultancy |
last post by:
In today's digital era, a well-designed website is crucial for businesses looking to succeed. Whether you're a small business owner or a large corporation in Toronto, having a strong online presence can significantly impact your brand's success. BSMN Consultancy, a leader in Website Development in Toronto offers valuable insights into creating effective websites that not only look great but also perform exceptionally well. In this comprehensive...
| |