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

  • Home
  • SEARCH
  • 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

Ask A Question

Stats

  • Questions 258k
  • Answers 258k
  • Best Answers 0
  • User 1
  • Popular
  • Answers
  • Editorial Team

    How to approach applying for a job at a company ...

    • 7 Answers
  • Editorial Team

    How to handle personal stress caused by utterly incompetent and ...

    • 5 Answers
  • Editorial Team

    What is a programmer’s life like?

    • 5 Answers
  • Editorial Team
    Editorial Team added an answer Does "BasedOn" work in Silverlight? // wpf developer, never sure May 13, 2026 at 10:55 am
  • Editorial Team
    Editorial Team added an answer First ensure that MacOSX/GlassFish really uses the specified Java version… May 13, 2026 at 10:55 am
  • Editorial Team
    Editorial Team added an answer According to the specification, you may place the tfoot before,… May 13, 2026 at 10:55 am

Related Questions

Using Access 2003 Database Table EmpID Intime Outtime 001 090020 180000 002 060000 220000
Using VB 6 and Access 2003 Code Dim db As Database, tbl As TableDef
Using VB 6 and Access 2003 I want to copy a table from one
How to display a table order by code (like 01, 02… then null columns)?

Trending Tags

analytics british company computer developers django employee employer english facebook french google interview javascript language life php programmer programs salary

Top Members

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.