473,402 Members | 2,072 Online
Bytes | Software Development & Data Engineering Community
Post Job

Home Posts Topics Members FAQ

Join Bytes to post your question to a community of 473,402 software developers and data experts.

Date and Time grouping for Production Reports

18
Hey Team,

Here's one for you all to ponder. In Access 2003, I'm updating a Operations Database for a manufacturing plant. The data is of production runs for the plant. So there are start date's and start times for each run. For example on monday march 10 there could have been entries like 5:00 - 13:00 (..data from shift), 13:00 - 21:00 (data from shift).. etc.

The report that i'm working on displays all production runs between two dates. So all runs for the month of March for example. The report groups the entries by start date. So all runs for the 10th of march are in one group, and at the end of this group there is some vital summaries for the day. Then the next group is of the 11th and at the end of that, vital summaries for that day's runs.

So far pretty straight forward?

Because the plant is run in shifts, a single day (in their minds) runs from 5:00 am on the day of, to 5:00 am on the following day.

So here is my question. Is it possible to set the grouping of the report to group the runs in the manner that I want? Where under March 10th there would only be runs that started after 5:00 am on the 10th and before 5:00 am on the 11th? Right now the report would include a run that started March 10th at 1:00 am and went to 5:00 am, it would include this in the March 10th group. When really this run should be in the March 9 group.

I am aware that you can use expressions to group but would these parameters be too advanced and complex for access to handle? If not then where would I start? I tried to use some "IF" statements but to no avail.

Thanks for all your help in advance. Hopefully this little brain teaser won't prove too exorbitant.
Mar 14 '08 #1
2 1849
MindBender77
234 100+
I work where our midnight shift goes from 10pm on day 1 to 7am on day 2. You add criteria to the date and time range of your query like:

This example is based on my shift schedule but, it may help in your case.
Expand|Select|Wrap|Line Numbers
  1. DateField                                     TimeField
  2. Criteria: Date()-1        Between 22:00:00 and 23:59:59
  3. Criteria: Date()                         Between 00:00:00 and 07:00:00
  4.  
Bender
Mar 14 '08 #2
CoopEng
18
I work where our midnight shift goes from 10pm on day 1 to 7am on day 2. You add criteria to the date and time range of your query like:

This example is based on my shift schedule but, it may help in your case.
Expand|Select|Wrap|Line Numbers
  1. DateField                                     TimeField
  2. Criteria: Date()-1        Between 22:00:00 and 23:59:59
  3. Criteria: Date()                         Between 00:00:00 and 07:00:00
  4.  
Bender
The query that calls the data is calling it correctly. It draws from 3 different queries. One that has the 5:00 - 24:00 on the front end of the search date, one that gets all the middle dates, then another the gets the info from 00:01 - 4:59 on the last day. I have another report that does the same function as this report, however it only does one day. That report works fine (because there is no need to group).

In the report I'm working on now, I need to create a group that runs much like a query really. So each group will be created based on each runs StartTime and StartDate. It's making this expression and where to put it that is the baffler.


The grouping is done in the "Sorting and Grouping" Menu.
View > Sorting and Grouping.
Here there is a Field/Expression column that specifies the criteria for each group. What expression would I have to put in there to create the group that I want?

Thanks for the help though Bender
Mar 14 '08 #3

Sign in to post your reply or Sign up for a free account.

Similar topics

7
by: vnl | last post by:
I'm trying to run a SQL query but can't find any records when trying to select a certain date. Here's the sql: SELECT field 1, field2, date_and_time, FROM table1 WHERE date_and_time =...
4
by: Beejer | last post by:
I'm running Access 2003 on WinXP Here is my problem: I'm trying to lookup a date in a table from a query data. The query include the following: Query = Qry_Invoice and Table = Tbl_Friday ...
7
by: | last post by:
Source Error: Line 173: sData(rownumber - 1, lcnt) = WhatCol.Value Line 174: End IF Line 175: If (sData(rownumber, lcnt) = sData(rownumber - 1, lcnt)) AND...
4
by: amanda27 | last post by:
I am creating a database where an excel spreadsheet will be imported and then different information will be taken from that spreadsheet to give different reports and graphs. I am having a problems...
4
by: norma.j.hildebrand | last post by:
I have a database that has a field (performance standard), every year the standard changed which was not a problem since we start out each year with a blank database and just change the standards...
2
by: LadySugar | last post by:
Greetings! I have a database in access that contains information about the date members joined the company. Every year, membership must be renewed for each member. Usually I will send out a...
1
by: saran3b2 | last post by:
Hi all, Please suggest us. My xml file is <?xml version="1.0" encoding="UTF-8"?> <?xml-stylesheet type="text/xsl" href="Y:\02-Thomson\Users\APT\xsl\vinoth-new.xsl"?> <report>...
0
by: Charles Arthur | last post by:
How do i turn on java script on a villaon, callus and itel keypad mobile phone
1
by: nemocccc | last post by:
hello, everyone, I want to develop a software for my android phone for daily needs, any suggestions?
0
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...
0
marktang
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,...
0
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...
0
Oralloy
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,...
0
jinu1996
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...
0
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...
0
isladogs
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...

By using Bytes.com and it's services, you agree to our Privacy Policy and Terms of Use.

To disable or enable advertisements and analytics tracking please visit the manage ads & tracking page.