Results 1 to 7 of 7
  1. #1
    jparker1954 is offline Advanced Beginner
    Windows XP Access 2003
    Join Date
    Jul 2011
    Posts
    85

    Unhappy Access 2003 database showing #Error message when viewed in Access 2007

    I have a formula in a report that I use in an Access 2002-2003 database. This formula works perfectly in Access 2003, but it shows an #Error message when I try to view the report in Access 2007. I cannot upgrade the database to a 2007 version, because most users are still in Access 2003. Is there anything in this formula that might jump out as the problem between viewing it OK in 2003 and getting the error message in 2007?

    =Sum(Round((([HarvestingLogQuery]![TotalSumOfGRPCS])*[MaxOfWtGRPCS])+(([HarvestingLogQuery]![TotalSumOfUgRPCS])*[MaxOfWtUgRPCS])+(([HarvestingLogQuery]![TotalSumOfRdRPCS])*[MaxOfWtRdRPCS])+(([HarvestingLogQuery]![TotalSumOfTubs])*[MaxOfWtTubs])+(([HarvestingLogQuery]![TotalSumOfSqRPCS])*[MaxOfWtSqRPCS])+(([HarvestingLogQuery]![TotalSumOfZuRPCS])*[MaxOfWtZuRPCS])+(([HarvestingLogQuery]![TotalSumOfCuRPCS])*[MaxOfWtCuRPCS])+(([HarvestingLogQuery]![TotalSumOfBins])*[MaxOfWtBins])+([HarvestingLogQuery]![TotalSumOfLBS]),2))

  2. #2
    orange's Avatar
    orange is offline Moderator
    Windows XP Access 2003
    Join Date
    Sep 2009
    Location
    Ottawa, Ontario, Canada; West Palm Beach FL
    Posts
    16,849
    What is the error number?

    Have you tried putting the Round(Sum(..blabla..),2)

  3. #3
    jparker1954 is offline Advanced Beginner
    Windows XP Access 2003
    Join Date
    Jul 2011
    Posts
    85
    There is no error number. The report just shows #Error where the total should be. Switching the Round and the Sum doesn't change anything. Still says #Error.

  4. #4
    orange's Avatar
    orange is offline Moderator
    Windows XP Access 2003
    Join Date
    Sep 2009
    Location
    Ottawa, Ontario, Canada; West Palm Beach FL
    Posts
    16,849
    How about posting a copy of the database --remove anything confidential?

  5. #5
    jparker1954 is offline Advanced Beginner
    Windows XP Access 2003
    Join Date
    Jul 2011
    Posts
    85
    Unfortunately, I can't do that. All I can tell you is that the first formula below is in a field that is in the Detail Dection of a Group with a Group Header and Group Footer. It shows the individual totals for several entries. It works perfectly in both Access 2003 and Access 2007

    =Round((([HarvestingLogQuery]![TotalSumOfGRPCS])*[MaxOfWtGRPCS])+(([HarvestingLogQuery]![TotalSumOfUgRPCS])*[MaxOfWtUgRPCS])+(([HarvestingLogQuery]![TotalSumOfRdRPCS])*[MaxOfWtRdRPCS])+(([HarvestingLogQuery]![TotalSumOfTubs])*[MaxOfWtTubs])+(([HarvestingLogQuery]![TotalSumOfSqRPCS])*[MaxOfWtSqRPCS])+(([HarvestingLogQuery]![TotalSumOfZuRPCS])*[MaxOfWtZuRPCS])+(([HarvestingLogQuery]![TotalSumOfCuRPCS])*[MaxOfWtCuRPCS])+(([HarvestingLogQuery]![TotalSumOfBins])*[MaxOfWtBins])+([HarvestingLogQuery]![TotalSumOfLBS]),2)

    The formula below is in the Group Footer of the same group and totals the individual results of the formula shown above into one Grand Total. It works perfectly in Access 2003 and generates the #Error message in Access 2007, despite the fact that the only differences are the "Sum(" at the beginning and the extra ")" at the end.

    =Sum(Round((([HarvestingLogQuery]![TotalSumOfGRPCS])*[MaxOfWtGRPCS])+(([HarvestingLogQuery]![TotalSumOfUgRPCS])*[MaxOfWtUgRPCS])+(([HarvestingLogQuery]![TotalSumOfRdRPCS])*[MaxOfWtRdRPCS])+(([HarvestingLogQuery]![TotalSumOfTubs])*[MaxOfWtTubs])+(([HarvestingLogQuery]![TotalSumOfSqRPCS])*[MaxOfWtSqRPCS])+(([HarvestingLogQuery]![TotalSumOfZuRPCS])*[MaxOfWtZuRPCS])+(([HarvestingLogQuery]![TotalSumOfCuRPCS])*[MaxOfWtCuRPCS])+(([HarvestingLogQuery]![TotalSumOfBins])*[MaxOfWtBins])+([HarvestingLogQuery]![TotalSumOfLBS]),2))

  6. #6
    jparker1954 is offline Advanced Beginner
    Windows XP Access 2003
    Join Date
    Jul 2011
    Posts
    85
    Below is a section of my report that shows the Group I'm having trouble with. The boxed section at the top is the Group Header. The rows of dates and numbers below that is the detail section. The first formula I showed in my previous thread is the Total LBS formula. This formula works perfectly in both Access 2003 and Access 2007.

    The Section that shows the Ugly Total: #Error is in the Group Footer. It is where the second formula I listed in my previous thread is located. It Sums up the Total LBS for the individual entries in the group. That formula works perfectly in Access 2003, but it is showing #Error in Access 2007. The other #Errors are because they are linked to that formula.

    My question is - is there a way to fix this to show the totals in Access 2007 and still have it work in Access 2003? Or is there an alternative method that will achieve that end? I tried to look into the Totals options for Groups in Access 2007, but for this box, it will only let me use the Count option - the Sum option is not available.
    Click image for larger version. 

Name:	FileErroPage-Section.jpg 
Views:	5 
Size:	97.5 KB 
ID:	19604

  7. #7
    jparker1954 is offline Advanced Beginner
    Windows XP Access 2003
    Join Date
    Jul 2011
    Posts
    85
    I was finally able to get the report to work in BOTH Access 2003 and Access 2007. I ended up testing the formula in 3 separate sections and discovered that the individual sections worked just fine in both 2003 and 2007. So I separated the big formula field into 3 different fields and hid them, then created a new field to add those 3 fields together. Works just fine. The only thing I can figure is that Access 2007 didn't like the number of parameters I had in the original field.

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

Similar Threads

  1. Replies: 6
    Last Post: 01-21-2014, 02:59 PM
  2. Replies: 4
    Last Post: 07-06-2012, 07:46 AM
  3. Replies: 2
    Last Post: 06-18-2011, 09:55 AM
  4. Problem Saving Access 2007 to 2003 database
    By spkoest in forum Access
    Replies: 4
    Last Post: 05-03-2011, 04:44 PM
  5. Migration from Access 2003 database to Access 2007 database.
    By cyclus2 in forum Import/Export Data
    Replies: 1
    Last Post: 09-10-2010, 11:43 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