Using Crystal Reports to display a Timespan field

Posted on 2014-04-11
Last Modified: 2014-11-24
I have a client who is using Crystal Reports 11 to create reports from an MS SQL database.  One of the tables contains some timespan fields, which just display as long integers when dropped onto a crystal report.

How does he (or I) format a timespan in Crystal so that is appears as HH:mm:ss format?
Question by:WestcountryBusiness
Welcome to Experts Exchange

Add your voice to the tech community where 5M+ people just like you are talking about what matters.

  • Help others & share knowledge
  • Earn cash & points
  • Learn & ask questions
  • 2
  • 2
LVL 16

Accepted Solution

Wasim Akram Shaik earned 250 total points
ID: 39994018
check elapsed_time function here .. this could be of help
LVL 101

Expert Comment

ID: 39994066
DO you know what the numbers represent?

If it is the number of seconds the above formulas will work.  If they represent something else then a different formula is required.


Author Comment

ID: 39994082
Its a timespan field, created in VB.Net, coverted to ticks and saved as a System.Int64, so I think that formula will work.  I'll test it.  Thanks.
LVL 101

Expert Comment

ID: 40461624
I've requested that this question be closed as follows:

Accepted answer: 250 points for Wasim Akram Shaik's comment #a39994018

for the following reason:

This question has been classified as abandoned and is closed as part of the Cleanup Program. See the recommendation for more details.

Author Comment

ID: 40461622
Sorry I completely forgot about this.  Yes, that solution worked.  Happy to close and award points to wasimibm.  Thanks everyone for the help.

Featured Post

Transaction Monitoring Vs. Real User Monitoring

Synthetic Transaction Monitoring Vs. Real User Monitoring: When To Use Each Approach? In this article, we will discuss two major monitoring approaches: Synthetic Transaction and Real User Monitoring.

Question has a verified solution.

If you are experiencing a similar issue, please ask a related question

This article shows gives you an overview on SQL Server 2016 row level security. You will also get to know the usages of row-level-security and how it works
Recently we ran in to an issue while running some SQL jobs where we were trying to process the cubes.  We got an error saying failure stating 'NT SERVICE\SQLSERVERAGENT does not have access to Analysis Services. So this is a way to automate that wit…
This video shows how to set up a shell script to accept a positional parameter when called, pass that to a SQL script, accept the output from the statement back and then manipulate it in the Shell.
Using examples as well as descriptions, and references to Books Online, show the documentation available for datatypes, explain the available data types and show how data can be passed into and out of variables.

707 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