Results 1 to 4 of 4
  1. #1
    tokyojo1 is offline Novice
    Windows 8 Access 2007
    Join Date
    Mar 2014
    Posts
    2

    Root Cause, Preventative Action : Need time and Date Help.

    Hi Guys.



    Relatively new to access, I just created a db for root cause preventative actions, what I am wanting to do is have the scheduled date/time field calculate the time in hrs and minutes a job was supposed to take, if the job doesn't get made on the scheduled time and day I have another field with actual date/time that I would like to be calculated.
    There are also set up & clean down field that I would like to add to the actual time it too to run the job.

    How would one go about this, I have read multiple posts, but apologies I cannot figure this out.

    Anyone that can help, please make it as simple as possible for me to understand.

    Appreciate help and advice..
    Attached Thumbnails Attached Thumbnails Untitled.jpg  

  2. #2
    June7's Avatar
    June7 is online now VIP
    Windows 7 64bit Access 2010 32bit
    Join Date
    May 2011
    Location
    The Great Land
    Posts
    52,902
    Use DateDiff() function. http://office.microsoft.com/en-us/ac...001228811.aspx

    To get decimal hours:

    DateDiff("n", [datetime start], [datetime end]) / 60
    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
    tokyojo1 is offline Novice
    Windows 8 Access 2007
    Join Date
    Mar 2014
    Posts
    2
    Thanks, I kinda figured the datediff function out, cant seem to get the last part to calculate "There are also set up & clean down field that I would like to add to the actual time it took to run the job" =[Actual Run Time]+[Set Up Time]+[Clean Down Time], but i get a name? error..

  4. #4
    June7's Avatar
    June7 is online now VIP
    Windows 7 64bit Access 2010 32bit
    Join Date
    May 2011
    Location
    The Great Land
    Posts
    52,902
    That usually indicates misspelling of field name or textbox name in the expression. Or the field is not even included in the form RecordSource.
    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.

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

Similar Threads

  1. Replies: 11
    Last Post: 07-20-2014, 06:22 PM
  2. Replies: 1
    Last Post: 03-13-2014, 07:23 PM
  3. Replies: 6
    Last Post: 11-28-2012, 03:43 PM
  4. Replies: 15
    Last Post: 07-26-2012, 02:06 PM
  5. Replies: 7
    Last Post: 07-18-2012, 07:53 AM

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