Duane thanks for working with me.
I keep getting a "Overflow" error, so something I must be doing is
wrong.
THe Field name with the dates and times is called [Opened] & the format
is this "5/26/2006 6:04:00 AM".
If I use the first expression: CDate(CInt([TimeFieldValue] * 96)/96) do
I use that in a corss tab query or where you just telling me that this
was a way to round to the nearest 15 minute interval?
I guess I want to group all the times by a 15 miute interval (for a
day) so that I can count them. Maybe I am putting the expression in the
worng place. I am putting it under the opened field.
The second expression you gave me gives me the same error. However I am
having trouble understanding where I set the column heading properties.
When I pull up the properties to the column header is only gives me on
box.
This is my SQL for 5/26/2006 with the Opened field as a Row Heading.
TRANSFORM Count([qryTotals_5/26/06_HB].Type) AS CountOfType
SELECT [qryTotals_5/26/06_HB].Opened,
Count([qryTotals_5/26/06_HB].Type) AS [Total Of Type]
FROM [qryTotals_5/26/06_HB]
GROUP BY [qryTotals_5/26/06_HB].Opened
PIVOT [qryTotals_5/26/06_HB].Owner;
If I put Opened as the column heading it give me an error like, to
complicated or cannot.
thanks,
David
Duane said:
You can get times rounded to the nearest 15 minute interval with an
expression like:
CDate(CInt([TimeFieldValue] * 96)/96)
If this is column heading in a crosstab query I would use and expression
like
"T" & CInt([TimeFieldValue] * 96)
Then set your Column Headings property to:
"T22","T23","T24","T25"...,"T76"
--
Duane Hookom
MS Access MVP
Do you know how I could get it down to 15 minute intervals. Starting at
5:30 and ending at 7PM?
I got it down to the a specific date, but have not made it any further.
Dave
Duane Hookom wrote:
A crosstab should work. Set the column heading field to
"D" & Day([Opened])
and set the Column Headings property to: "D1","D2","D3","D4",..."D31"
Make sure you only return a month of data or March 1st will be totaled
with
April 1st etc.
--
Duane Hookom
MS Access MVP
I have been playing around with the crosstab query, but I am not sure
I
am in the right direction.
Dave
Duane Hookom wrote:
You may need to start over. I don't have a clue what you have, what
you
want, or where any time values are coming from.
--
Duane Hookom
MS Access MVP
SELECT [tbl_HRC CRM Output FY06].Owner, Count([tbl_HRC CRM Output
FY06].Owner) AS CountOfOwner
FROM [tbl_HRC CRM Output FY06]
WHERE ((([tbl_HRC CRM Output FY06].Opened)>=#5/1/2006# And
([tbl_HRC
CRM Output FY06].Opened)<#6/1/2006#))
GROUP BY [tbl_HRC CRM Output FY06].Owner
ORDER BY [tbl_HRC CRM Output FY06].Owner;
The owner is the username I am looking for. This seems to work.
Is
this
what you meant by a totals query or am I doing something else?
I would like to put this in a time series down to 15 minute gaps
from
7AM to 7PM. Possible?
Many Thanks - David
Duane Hookom wrote:
Create a totals query and use it as the record source of your
report
or a
subreport.
--
Duane Hookom
MS Access MVP
I have a field for Username and I want to run a report that
displays
each user name with the number of times is apprears in the
field.
I
know I can use differnet count or sum functions like
"=Sum(Abs([Facility VISN]="10"))" but I have like 300
different
usernames and I don't want to have to code each txt box. Is
thier
a
way
I can run a report which lists the usersnames and the number
of
times
it apprears within a field?
Somthing like this:
dayb 31
coxm 15
David