Consulting

Results 1 to 2 of 2

Thread: Timesheet entry

  1. #1

    Timesheet entry

    Hi friends,

    I have below code, i need to restrict the employee time sheet entry in daily log, which should not exceed 10 hours per day, particular emplyee / id should not enter more than 10 hours a day.

    If VarType(DSum("[TIME_SPENT]", "[tbl_daily_log]", "[datec]=#" & Me.DATEc & "# and [OPE_id]=" & Me.OPE_ID & "")) > 10 Then

    the above code is not working kindly help me.

  2. #2
    Distinguished Lord of VBAX VBAX Grand Master Bob Phillips's Avatar
    Joined
    Apr 2005
    Posts
    25,453
    Location
    You are going to have to do a lot better than that at explaining the problem. We need to know about the data, what you are trying to do (what does restrict mean in this contrext), and so on.

    A workbook example would also help.
    ____________________________________________
    Nihil simul inventum est et perfectum

    Abusus non tollit usum

    Last night I dreamed of a small consolation enjoyed only by the blind: Nobody knows the trouble I've not seen!
    James Thurber

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •