Page 2 of 2 FirstFirst 12
Results 16 to 18 of 18
  1. #16
    live2ride is offline Advanced Beginner
    Windows 7 64bit Access 2007
    Join Date
    Jun 2012
    Posts
    70
    dates.accdb
    attached is what i have so far

  2. #17
    June7's Avatar
    June7 is offline VIP
    Windows XP Access 2010 32bit
    Join Date
    May 2011
    Location
    The Great Land
    Posts
    53,772
    Field BAHoursMinutes is LongInteger type. This will not allow values with decimal. Must be Single or Double type (I use only Double).

    Again, do you want to save value with decimal (like 2.5) for BAHoursMinutes? If you do, then change the field type. Also, the baHrsMin function is concatenting with colon instead of period. Might want to declare the function as Double instead of String but not critical, code should be able to save the value to Double field regardless. I can see you understand code to save value to field.

    Just need to resolve questions of field type and how you want to round 15 minutes. Do you want to round according to your original function or by my first suggested expression? I also gave you an expression that could be used in textbox (or in code or in query) that would eliminate the custom function.

    Don't know how else I can help you. This seems really quite simple and straightforward.
    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. #18
    live2ride is offline Advanced Beginner
    Windows 7 64bit Access 2007
    Join Date
    Jun 2012
    Posts
    70
    changing field from LongInteger to Double did the trick. now i can add value with decimal. Thank you so much!

Page 2 of 2 FirstFirst 12
Please reply to this thread with any new information or opinions.

Similar Threads

  1. Replies: 1
    Last Post: 08-08-2012, 01:42 PM
  2. Replies: 4
    Last Post: 08-06-2012, 10:25 AM
  3. Converting Minutes Into Hours
    By KellyM in forum Reports
    Replies: 8
    Last Post: 04-23-2012, 12:49 PM
  4. Overall Total of Hours & Minutes in Report
    By StevenCV in forum Reports
    Replies: 1
    Last Post: 02-27-2012, 10:48 AM
  5. How to calculate duration in hours & minutes
    By joypanattil in forum Access
    Replies: 0
    Last Post: 11-25-2009, 04:49 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