From: Nancy Tang on
I would like to generate report for those who late to work. But the database
time is in text format, so i change it to short time using code as below. Is
it correct ? & how do i set a calculation for total time late in HH:MM:SS
as my working time is 09:00

Format(IIf(IsNull([dbo_Punctual.TrTime]),#12/30/2010#,[dbo_Punctual.TrTime]),'Short Time') AS [TRANSACTION TIME]
From: maheshkumargupta on

"Nancy Tang" <NancyTang(a)discussions.microsoft.com> wrote in message
news:F1A7B165-2340-4BF7-8447-5C38B1D63EAA(a)microsoft.com...
>I would like to generate report for those who late to work. But the
>database
> time is in text format, so i change it to short time using code as below.
> Is
> it correct ? & how do i set a calculation for total time late in
> HH:MM:SS
> as my working time is 09:00
>
> Format(IIf(IsNull([dbo_Punctual.TrTime]),#12/30/2010#,[dbo_Punctual.TrTime]),'Short
> Time') AS [TRANSACTION TIME]

From: Douglas J. Steele on
Try

Format(IIf(IsNull([dbo_Punctual.TrTime]),#12/30/2010#,CDate([dbo_Punctual.TrTime])),'Short
Time') AS [TRANSACTION TIME]

--
Doug Steele, Microsoft Access MVP
http://www.AccessMVP.com/DJSteele
(no e-mails, please!)

"Nancy Tang" <NancyTang(a)discussions.microsoft.com> wrote in message
news:F1A7B165-2340-4BF7-8447-5C38B1D63EAA(a)microsoft.com...
>I would like to generate report for those who late to work. But the
>database
> time is in text format, so i change it to short time using code as below.
> Is
> it correct ? & how do i set a calculation for total time late in
> HH:MM:SS
> as my working time is 09:00
>
> Format(IIf(IsNull([dbo_Punctual.TrTime]),#12/30/2010#,[dbo_Punctual.TrTime]),'Short
> Time') AS [TRANSACTION TIME]