Results 1 to 5 of 5
  1. #1
    rck3 is offline Novice
    Windows 7 64bit Access 2007
    Join Date
    Apr 2012
    Posts
    24

    Table datasheet vs form datasheet question/issue

    Ok so I know there is something basic I must be missing. I have a database all complete except for 1 minor bug I can not work out. I have a database with with a table Employee_Time and a form for import. I have 1 field which is a time calcuation from the start/stop time in 2 other fields. When I fill the form out, that time in hours displays correctly. When I exit and return to the form in datasheet view I can see all of the hours stored but if I open the actual Employee_Time table that time is not stored. How can it store in the form view but not on the actual table?

  2. #2
    Bob Fitz's Avatar
    Bob Fitz is offline Access Developer
    Windows XP Access 2003
    Join Date
    May 2011
    Location
    Essex UK
    Posts
    3,544
    I have 1 field which is a time calcuation from the start/stop time in 2 other fields
    I assume that the "2 other fields" are start and finsh times and that the calculation that is diplayed in the form is the difference between the start and finish times. If that is correct, then the start and finish time should be stored in the table, but the calculated time btween them should NOT be stored. It should be calculated whenever and wherever it is required.
    If this helped, please click the star at the bottom left of this posting and add to my reputation . Many thanks.
    Bob Fitzpatrick

  3. #3
    rck3 is offline Novice
    Windows 7 64bit Access 2007
    Join Date
    Apr 2012
    Posts
    24
    Ok, I was going to do that but in the reporting I was running into the issue of hours being calculated and not allowing a sum, just a count.

  4. #4
    rck3 is offline Novice
    Windows 7 64bit Access 2007
    Join Date
    Apr 2012
    Posts
    24
    I am using =DateDiff("h",[Start Time],[Stop Time]) & ":" & Format(DateDiff("n",[Start Time],[Stop Time]) Mod 60,"00") which gives me the time in the format I want but is there another way to do this so I can sum the hours on my report?

  5. #5
    rck3 is offline Novice
    Windows 7 64bit Access 2007
    Join Date
    Apr 2012
    Posts
    24
    figured it out, you can close this

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

Similar Threads

  1. Replies: 2
    Last Post: 02-23-2012, 09:03 PM
  2. Issue with using a datasheet in a subform
    By Meichmann in forum SharePoint
    Replies: 2
    Last Post: 01-17-2012, 07:26 AM
  3. Form opens table in datasheet view
    By franklbl in forum Forms
    Replies: 9
    Last Post: 03-23-2011, 09:43 PM
  4. Access Datasheet Issue
    By new in forum Access
    Replies: 4
    Last Post: 01-22-2010, 08:59 AM
  5. Issue with while loop and Access 2007 datasheet
    By jermaine123 in forum Programming
    Replies: 2
    Last Post: 01-17-2010, 10:09 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