Results 1 to 3 of 3
  1. #1
    jalal is offline Novice
    Windows 7 64bit Access 2007
    Join Date
    Jan 2012
    Posts
    17

    Reporting Time fixed as a daily variable

    Hi
    Please help
    I am working on office database. I have to note the fixed reporting time of every employee on a daily basis at 9:50 AM. That is the 9:50Am is the reporting time (ArrivalTime). If any employee attends the office at 9:51am a flag is incerted as “Late”.

    However, The employee is give a benefit for ten mintus. i.e. he can mark the attendance upto 10Am but will be treated as late comer. After 10 am a flag is created as and a late mark (1) is generated. The late marks are counted during the month and and 6 late marks will penelize the employee as ½ days leave.

    Now I want to generate a control which will give 9:50 Am as reporting time every day.


    I have already used the following formula but trhe problem is it gives me reporting time as 10 Am.
    instead I want 9:50 am as reporting time

    Formulla which I used in the query >>> field 1 = ArrivalTime & field 2 = ReportingTime

    Arrivaltime : date()
    ReportTime: DateAdd("h",+10,[ArrivalTime])

    Rest of the Flags I have already generated

    Thank You
    Jala

  2. #2
    June7's Avatar
    June7 is offline VIP
    Windows XP Access 2010 32bit
    Join Date
    May 2011
    Location
    The Great Land
    Posts
    52,930
    You are adding 10 hours to the Date()

    Try:
    ReportTime: CDate(Date() & " 9:50:00 AM")
    How to attach file: http://www.accessforums.net/showthread.php?t=70301 To provide db: copy, remove confidential data, run compact & repair, zip w/Windows Compression.

  3. #3
    jalal is offline Novice
    Windows 7 64bit Access 2007
    Join Date
    Jan 2012
    Posts
    17
    Thanks for helping
    Problem solved

Please reply to this thread with any new information or opinions.

Similar Threads

  1. Replies: 1
    Last Post: 02-28-2012, 09:16 PM
  2. Replies: 0
    Last Post: 08-10-2011, 11:59 AM
  3. Object variable or With block variable not set
    By walter189 in forum Programming
    Replies: 1
    Last Post: 07-28-2011, 08:51 AM
  4. Replies: 4
    Last Post: 08-05-2010, 01:26 PM
  5. Refering to variable form names inside a variable
    By redpetfran in forum Programming
    Replies: 2
    Last Post: 05-21-2010, 01:39 PM

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •  
Other Forums: Microsoft Office Forums