473,394 Members | 1,738 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,394 software developers and data experts.

Grouping Dates and Calculating Hours on a Form

I have created a frmTimesheet form where auditors will enter their hours for audits that they've worked on. I know how to build a very basic, no-frills database, and what I'm trying to accomplish here is a bit beyond my true technical expertise.

At this point, the auditor can select his/her name on the primary Form which will filter any/all audits that they have charged time to (subForm). The subForm details the audits, dates, and hours per audit.

Problem: Some audits have the same date, but different hours associated. Example:

Auditor: Jane Smith
Activity Date Hours
Admin 10/6/07 5
Acctg 10/6/07 3
Training 10/25/07 8

Is there a way on a Form to group like dates and have the hours associated with the like dates to sum, so that one can be assured that they have entered at least 8 hours on a given day?

Thank you
Oct 26 '07 #1
4 1615
beacon
579 512MB
Are you going to be examining your data on a table or will you eventually create a report?

If you create a report you can insert a count function to total the number of hours worked for a given date. Actually you can do this on the table too.

Let me know if this is something you're interested in.
Oct 26 '07 #2
Are you going to be examining your data on a table or will you eventually create a report?

If you create a report you can insert a count function to total the number of hours worked for a given date. Actually you can do this on the table too.

Let me know if this is something you're interested in.
Beacon-
Of course, I want to make sure that the underlying Table is accurately capturing all data, however, I would be examining the information in a report that I would create.

I am interesting in learning more as to how to do this.

Sounds like I would be unable to do this in a form...???
Oct 29 '07 #3
beacon
579 512MB
When you create your report, create a footer section for the hours worked and type in the following expression into a text box:
Expand|Select|Wrap|Line Numbers
  1. =Sum(Hours)
  2.  
This will work for you if you setup your report to be grouped by individual and then by date. I said count in the last reply, but I realized that you were actually wanting a total.

You can do the same thing on a form using a text box.

Hope this helps...
Oct 29 '07 #4
When you create your report, create a footer section for the hours worked and type in the following expression into a text box:
Expand|Select|Wrap|Line Numbers
  1. =Sum(Hours)
  2.  
This will work for you if you setup your report to be grouped by individual and then by date. I said count in the last reply, but I realized that you were actually wanting a total.

You can do the same thing on a form using a text box.

Hope this helps...
Awesome, mission accomplished. Thank you much:)
Oct 29 '07 #5

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

Similar topics

3
by: thefirstwml | last post by:
I am using Visual Studio.NET 2002 Professional and am attempting to create a report on Crystal Reports for .NET. I know that Crystal Reports can group on anything, and when I add multiple...
26
by: Frank | last post by:
For my website i would like to display the age of my son in years, months, days and hours. For now i manage to get a result for totals. Like the total number of days. This is the beginning: ...
8
by: Mojca | last post by:
What is formula that get days between two dates? Npr: 11.03.1998 – 1.7.2005 Thank you, Mojca
16
by: Dennis D. | last post by:
Hello: Been working on this way too long. DateDiff returns a Long. : Totally counter-intuitive. Subtracting: 0400 - 0345 returns -15 : Wrong, should be +15? Subtracting 02:00 - 00:15 with an...
2
by: Carl | last post by:
Hi, I have a query that produces an output similar to the sample shown below. These records are based on certain criteria and a date range selected from a form. I need to create some kind of...
2
by: dath | last post by:
Hi, Not really a programmer here, but have been forced into the role. I was asked to develop a basic time sheet for employees to enter time. I developed the Table without a problem. I then...
8
by: Remington | last post by:
I am using windows 2000pro with access 2000. I am trying to make a database for our HR department, that would allow our HR Director to type in an employee's ID number into a form and then select...
6
by: richbneal | last post by:
I really like the site so far and this is my first post. I have looked through some of the archives with no luck. I have also read the posting guidelines and will do my best to be clear and accurate...
6
by: sqlbraindead | last post by:
The problem is if I want to group my database on the time basis, how can reconcile the grouping of two different criteria structure? This is an example. Two table I want to use these to get a...
0
by: Charles Arthur | last post by:
How do i turn on java script on a villaon, callus and itel keypad mobile phone
0
by: ryjfgjl | last post by:
If we have dozens or hundreds of excel to import into the database, if we use the excel import function provided by database editors such as navicat, it will be extremely tedious and time-consuming...
0
by: emmanuelkatto | last post by:
Hi All, I am Emmanuel katto from Uganda. I want to ask what challenges you've faced while migrating a website to cloud. Please let me know. Thanks! Emmanuel
1
by: nemocccc | last post by:
hello, everyone, I want to develop a software for my android phone for daily needs, any suggestions?
1
by: Sonnysonu | last post by:
This is the data of csv file 1 2 3 1 2 3 1 2 3 1 2 3 2 3 2 3 3 the lengths should be different i have to store the data by column-wise with in the specific length. suppose the i have to...
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
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
tracyyun
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...

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.