Sign Up

Sign Up to our social questions and Answers Engine to ask questions, answer people’s questions, and connect with other people.

Have an account? Sign In

Have an account? Sign In Now

Sign In

Login to our social questions & Answers Engine to ask questions answer people’s questions & connect with other people.

Sign Up Here

Forgot Password?

Don't have account, Sign Up Here

Forgot Password

Lost your password? Please enter your email address. You will receive a link and will create a new password via email.

Have an account? Sign In Now

You must login to ask a question.

Forgot Password?

Need An Account, Sign Up Here

Please briefly explain why you feel this question should be reported.

Please briefly explain why you feel this answer should be reported.

Please briefly explain why you feel this user should be reported.

Sign InSign Up

The Archive Base

The Archive Base Logo The Archive Base Logo

The Archive Base Navigation

  • SEARCH
  • Home
  • About Us
  • Blog
  • Contact Us
Search
Ask A Question

Mobile menu

Close
Ask a Question
  • Home
  • Add group
  • Groups page
  • Feed
  • User Profile
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Buy Points
  • Users
  • Help
  • Buy Theme
  • SEARCH
Home/ Questions/Q 342431
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: May 12, 20262026-05-12T10:48:11+00:00 2026-05-12T10:48:11+00:00

Using Access 2003 Database Table1 Intime Outtime WorkTime OverTime 08:00:00 19:00:00 09:00:00 02:00:00 09:00:00

  • 0

Using Access 2003 Database

Table1

Intime   Outtime  WorkTime OverTime

08:00:00 19:00:00 09:00:00 02:00:00
09:00:00 18:23:23 09:00:00 00:23:23
15:00:00  -----   00:00:00 00:00:00
09:00:00 18:00:00 09:00:00 00:00:00

Intime, Outtime, Work time, overtime data type is text

From 09:00:00 to 18:00:00 - It will come in Work time
Before 09:00:00, after 18:00:00 – It will come in overtime

My query.

SELECT PERSONID,
       CARDEVENTDATE,
       INTIME,
       OUTTIME,
       (IIF(OUTTIME = 'No Punchout', '00:00:00', WorkTime)) AS WorkedTime,
       (IIF(OUTTIME = 'No Punchout', '00:00:00', OverTime)) AS OverdutyTime,
       Latecome,
       (IIF(OUTTIME = 'No Punchout', '', EarlyLeave)) AS EarlyLeave
FROM
       (SELECT PERSONID,
               CARDEVENTDATE,
               INTIME,
               (IIF(OUTTIME = INTIME, 'No PunchOut', OUTTIME)) AS OUTTIME,
               (Format(IIf(CLng(OutTime) > 180000, 
                           CDate('18:00:00'), 
                           CDate(Format(OutTime, '00:00:00'))) 
                       - IIf(CLng(InTime) < 90000, 
                           CDate('09:00:00'), 
                           CDate(Format(InTime, '00:00:00'))),
                       'hh:nn:ss')) AS WorkTime,
               (Format(IIf(CLng(InTime) < 90000, 
                           CDate('09:00:00') 
                           - CDate(Format(InTime, '00:00:00')), 0) 
                       + IIf(CLng(OutTime) > 180000, 
                           CDate(Format(OutTime, '00:00:00')) 
                           - CDate('18:00:00'), 0), 
                       'hh:nn:ss')) AS OverTime,
               (Format(IIf(CLng(Intime) > 090000, 
                           CDate(Format(Intime, '00:00:00'))) 
                       - IIf(90000, CDate('09:00:00'), 
                           CDate(Format(InTime, '00:00:00'))), 
                       'hh:nn:ss')) AS LateCome,
               (Format(IIf(180000, 
                           CDate('18:00:00'), 
                           CDate(Format(outtime, '00:00:00'))) 
                       - IIf(CLng(Outtime) < 180000, 
                           CDate(Format(Outtime, '00:00:00'))), 
                       'hh:nn:ss')) AS EarlyLeave
               (SELECT  T_PERSON.PERSONID,
                        T_CARDEVENT.CARDEVENTDATE,
                        MIN(T_CARDEVENT.CARDEVENTTIME) AS INTIME,
                        MAX(T_CARDEVENT.CARDEVENTTIME) AS OUTTIME
               FROM     T_PERSON
                        INNER JOIN T_CARDEVENT
                        ON       T_PERSON.PERSONID = T_CARDEVENT.PERSONID
               GROUP BY T_PERSON.PERSONID,
                        T_CARDEVENT.CARDEVENTDATE
               )
       )

Above query is Correctly Working in my system.

But when I use the query in client system, it showing like this…

Table1

Intime   Outtime  WorkTime    OverTime

08:00:00 19:00:00 09:00:00 AM 02:00:00 AM
09:00:00 18:23:23 09:00:00 AM 12:23:23 AM
15:00:00  -----   12:00:00 AM 00:00:00 AM
09:00:00 18:00:00 09:00:00 AM 12:00:00 AM

It is displaying 12:00:00 AM Instead of 00:00:00 and also displaying 12:23:23 instead of 00:00:00.

If it is 00 then it is displaying 12:00:00 AM.

Clients Using Access 2007 Database. There is not Access 2003 or Access 2007 Problem.
Why worktime and Overtime is displaying like 12:00:00 AM. I copied the client database and check the database in my System. Work Time and Over Time is correctly displaying.

Please can any one help to solve my problem.

  • 1 1 Answer
  • 0 Views
  • 0 Followers
  • 0
Share
  • Facebook
  • Report

Leave an answer
Cancel reply

You must login to add an answer.

Forgot Password?

Need An Account, Sign Up Here

1 Answer

  • Voted
  • Oldest
  • Recent
  • Random
  1. Editorial Team
    Editorial Team
    2026-05-12T10:48:12+00:00Added an answer on May 12, 2026 at 10:48 am

    Change the way your system displays time.

    • 0
    • Reply
    • Share
      Share
      • Share on Facebook
      • Share on Twitter
      • Share on LinkedIn
      • Share on WhatsApp
      • Report

Sidebar

Related Questions

Using Access 2003 Database Table EmpID Intime Outtime 001 090020 180000 002 060000 220000
Using Access 2003 Date Column datatype is text Table1 Date 20090528 20090529 20090530 20090502
I am trying to access the data from MS Access Database using C#. in
Using Access 2003 I want to get a table value from the two databases
USING MS ACCESS 2003 How to check is null value in the access database?
Using Access 2003 Table1 ID Name Value 001 Raja 100 002 Ramu 200 004
Using MS Access 2003 My query. select a.personid, a.cardeventdate as newday, a.intime as intime,
I am working with an Access 2003 database that has a subroutine using DAO
I am creating a database application using Access 2003 that will be run as
Using VB 6 and Access 2003 Code Dim db As Database, tbl As TableDef

Explore

  • Home
  • Add group
  • Groups page
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Users
  • Help
  • SEARCH

Footer

© 2021 The Archive Base. All Rights Reserved
With Love by The Archive Base

Insert/edit link

Enter the destination URL

Or link to existing content

    No search term specified. Showing recent items. Search or use up and down arrow keys to select an item.