Working Time calculation - from text to short time

  • Thread starter Thread starter Nancy Tang
  • Start date Start date
N

Nancy Tang

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]
 
Nancy Tang said:
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]
 
Try

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

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Similar Threads

time issuse 3
calculation based on time 2
Time Calculation 1
Calculations with times 6
Convert Date/Time in VBA 2
Calculating Time Difference 2
query times 2
Adding Short Time? 1

Back
Top