Page 2 of 3 FirstFirst 123 LastLast
Results 16 to 30 of 34
  1. #16
    Hrtlover is offline Novice
    Windows XP Access 2003
    Join Date
    Apr 2011
    Posts
    17

    Hi mate,
    Thanks again, but now every time i open the report access crashs? :\
    Thanks.

  2. #17
    jzwp11 is offline VIP
    Windows 7 64bit Access 2010 64bit
    Join Date
    Jun 2010
    Location
    Dayton, OH
    Posts
    2,901
    I downloaded the database I posted yesterday and had no problem opening the report (report2). Did you make any changes to what I posted? If so, what?

  3. #18
    Hrtlover is offline Novice
    Windows XP Access 2003
    Join Date
    Apr 2011
    Posts
    17
    i just tried again with the database you uploaded, n it did the same thing..
    never got to open the report to look :\

  4. #19
    jzwp11 is offline VIP
    Windows 7 64bit Access 2010 64bit
    Join Date
    Jun 2010
    Location
    Dayton, OH
    Posts
    2,901
    I'm not sure what to tell you. You might create a new blank database and import everything from the other database in to it, and see if that solves the problem but I have a feeling it won't. Do you have any issues opening other Access databases?

  5. #20
    Hrtlover is offline Novice
    Windows XP Access 2003
    Join Date
    Apr 2011
    Posts
    17
    I know.. :| will the different versions matter? I tried opening in 2007 Access, and 2003 (prefrible) but i can try 2010 if need be. Would that help at all?

    But everything else seems fine, i have backups of the database i uploaded at first and they work fine still no other problems.. weird. Must be something in the paramaters or something?

  6. #21
    jzwp11 is offline VIP
    Windows 7 64bit Access 2010 64bit
    Join Date
    Jun 2010
    Location
    Dayton, OH
    Posts
    2,901
    I don't think the version will matter. Something strange is going on. I have removed your startup macro and run the compact and repair utility on the attached. Maybe it will work this time.

  7. #22
    Hrtlover is offline Novice
    Windows XP Access 2003
    Join Date
    Apr 2011
    Posts
    17
    Nope no good

  8. #23
    jzwp11 is offline VIP
    Windows 7 64bit Access 2010 64bit
    Join Date
    Jun 2010
    Location
    Dayton, OH
    Posts
    2,901
    OK then you will have to make the changes to your own working copy by adding a new control to the detail section of the report with the following control source

    =[hoursWorked]-(Int([hoursWorked]/5.5)*0.5)

    I called this control adjHoursWorked

    Then in the control that shows the time worked in HH:MM format, you will have to reference adjHoursWorked rather than hoursworked, so something like this:

    =Int([adjhoursWorked]) & ":" & Format(([adjhoursWorked]-Int([adjhoursWorked]))*60,"00")


    Then in the group footer, you will have to change the control that does the summing to the following:

    =Sum(IIf([workfinnishtime]<[workstarttime],24+DateDiff("n",[workStartTime],[workFinnishTime])/60,DateDiff("n",[workStartTime],[workFinnishTime])/60)-(Int((IIf([workfinnishtime]<[workstarttime],24+DateDiff("n",[workStartTime],[workFinnishTime])/60,DateDiff("n",[workStartTime],[workFinnishTime])/60))/5.5)*0.5))

  9. #24
    Hrtlover is offline Novice
    Windows XP Access 2003
    Join Date
    Apr 2011
    Posts
    17
    As soon as i put in those formulas and went to change veiw i got a crash, so theres something in there that its not liking.

  10. #25
    jzwp11 is offline VIP
    Windows 7 64bit Access 2010 64bit
    Join Date
    Jun 2010
    Location
    Dayton, OH
    Posts
    2,901
    Can you try it stepwise? Put in the adjhoursworked, save the report and test it to see if it works. If so, then the problem lies in the sum control. If it crashes after the adding adjhoursworked, then it doesn't like that expression, so we will have to find a way around it.

    I would make sure that my spelling of the controls/fieldnames are not different from yours.

  11. #26
    Hrtlover is offline Novice
    Windows XP Access 2003
    Join Date
    Apr 2011
    Posts
    17
    Yeah mate, all works until the sum formula, then it dies.

  12. #27
    jzwp11 is offline VIP
    Windows 7 64bit Access 2010 64bit
    Join Date
    Jun 2010
    Location
    Dayton, OH
    Posts
    2,901
    I had no problem either at work using Access 2003 or at home using Access 2010. I'm not sure where to go from here since I cannot duplicate the error.

  13. #28
    jzwp11 is offline VIP
    Windows 7 64bit Access 2010 64bit
    Join Date
    Jun 2010
    Location
    Dayton, OH
    Posts
    2,901
    I might have a workaround but I won't have time to work on it until tonight.

  14. #29
    Hrtlover is offline Novice
    Windows XP Access 2003
    Join Date
    Apr 2011
    Posts
    17
    thats ok mate, it fired up in 2010 here! only problem is now the sum control is giving a #error..

  15. #30
    jzwp11 is offline VIP
    Windows 7 64bit Access 2010 64bit
    Join Date
    Jun 2010
    Location
    Dayton, OH
    Posts
    2,901
    I move the calculations for the hoursworked and adjhoursworked to the query. See if you have any success with the attached.

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

Similar Threads

  1. Filter Sums By year
    By vdanelia in forum Forms
    Replies: 1
    Last Post: 02-12-2011, 09:15 PM
  2. How do I sum multiple sums?
    By RobRay in forum Reports
    Replies: 6
    Last Post: 11-26-2010, 08:48 PM
  3. Rolling 3 Month sums
    By michaeljohnh in forum Reports
    Replies: 1
    Last Post: 11-08-2010, 05:51 AM
  4. Sums of Multiple Queries
    By flsticks in forum Queries
    Replies: 5
    Last Post: 09-16-2010, 09:32 AM
  5. Need Help Summing UNIQUE Records
    By Millerguitarworks in forum Access
    Replies: 5
    Last Post: 05-27-2009, 04:37 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