Quantcast
Channel: VBForums - Reporting
Viewing all articles
Browse latest Browse all 594

need help VB6 datareport how do i use dateadd in shape??

$
0
0
I did not see replies in other post. please disregard this post. administrator please remove.

Hi,
I am using VB6 with access and data environment with datareport and single table. i need to show batch times as HH:MM:SS in the report but the time is stored in seconds. i have success using dateadd like this Format(DateAdd("s", number of seconds, "00:00:00"), "HH:mm:ss") in flexgrid etc, not sure how to use in in shape command.
the dataenvironment generated shape command looks like this.
Code:

SHAPE {SELECT * FROM `WorkInProgress`}  AS wip COMPUTE wip, SUM(wip.'Duration') AS Aggregate1, SUM(wip.'TimeAllowed') AS Aggregate2 BY 'BatchNumber'
i have also dragged fields over from dataenvironment from the detail fields list so i can show individual times.


the report should look like this
batch number | description | actual time | allowed time
100 | item 1 | 1:5:20 | 1:8:15
100 | item 2 | 1:23:15 | 2:25:00
subtotals | 2:28:35 | 3:33:15

101 | item 1 | 3:15 | 2:10
101 | item 2 | 5:00 | 1:35:23
sub totals | 8:15 | 1:37:33

Viewing all articles
Browse latest Browse all 594

Trending Articles



<script src="https://jsc.adskeeper.com/r/s/rssing.com.1596347.js" async> </script>