Solved

Date/Time Difference in Crystal Reports

Posted on 2010-09-01
3
723 Views
Last Modified: 2013-11-28
I'm creating a report in Crystal Reports XI in which I want to measure the difference (in hours) between two date/time scenarios. One issue is that I'd like to measure business hours only. The other issue is that the dates and times are currently in two different fields. I've used the date difference formula before, but I don't know how to work it for the above issues. Has anyone done this before?
0
Comment
Question by:badmanjack
3 Comments
 
LVL 100

Accepted Solution

by:
mlmcc earned 500 total points
ID: 33579331
Herre is a formula to calculate the workdays
http://www.kenhamady.com/form01.shtml

Here is a formula for workhours
http://www.kenhamady.com/form13.shtml

mlmcc
0
 
LVL 19

Expert Comment

by:GJParker
ID: 33586067
Will you need to exclude weekends and holidays from the calculation ?
0
 
LVL 34

Expert Comment

by:James0628
ID: 33602128
 > The other issue is that the dates and times are currently in two different fields.

 Two different fields (in the same record), or two different _records_?

 Two different fields is the easy one, so I'm guessing that you really meant two different records.  How you handle that may depend on the structure of your data and report.  The simplest thing would probably be if you could change the data so that both datetimes were included in the same record (in two separate fields, of course).  For example, maybe create a view or use a CR command (a query that you create manually) that pulls the two datetimes into one record.

 James
0

Featured Post

What Security Threats Are You Missing?

Enhance your security with threat intelligence from the web. Get trending threat insights on hackers, exploits, and suspicious IP addresses delivered to your inbox with our free Cyber Daily.

Join & Write a Comment

Regardless of which version on MS Access you are using, one of the harder data-entry forms to create is one where most data from previous entries needs to be appended to new records, especially when there are numerous fields and records involved.  W…
I see at least one EE question a week that pertains to using temporary tables in MS Access.  But surprisingly, I was unable to find a single article devoted solely to this topic. I don’t intend to describe all of the uses of temporary tables in t…
Familiarize people with the process of utilizing SQL Server functions from within Microsoft Access. Microsoft Access is a very powerful client/server development tool. One of the SQL Server objects that you can interact with from within Microsoft Ac…
Access reports are powerful and flexible. Learn how to create a query and then a grouped report using the wizard. Modify the report design after the wizard is done to make it look better. There will be another video to explain how to put the final p…

705 members asked questions and received personalized solutions in the past 7 days.

Join the community of 500,000 technology professionals and ask your questions.

Join & Ask a Question

Need Help in Real-Time?

Connect with top rated Experts

15 Experts available now in Live!

Get 1:1 Help Now