Page 2 of 2 FirstFirst 12
Results 16 to 25 of 25
  1. #16
    tharless is offline Novice
    Windows 7 Access 2007
    Join Date
    Sep 2010
    Posts
    14

    Ok, I ran the report, went into design view saved the report without changing anything and still get the error.
    Here is the documentation of the sub report

  2. #17
    RayMilhon is offline VIP
    Windows XP Access 2010 32bit
    Join Date
    Aug 2011
    Location
    Southern California
    Posts
    1,071
    Can't believe I didn't notice this yesterday. Change the % in the textboxname to percent.

  3. #18
    tharless is offline Novice
    Windows 7 Access 2007
    Join Date
    Sep 2010
    Posts
    14
    No change, still goes back to the error everytime I close and re-open

  4. #19
    RayMilhon is offline VIP
    Windows XP Access 2010 32bit
    Join Date
    Aug 2011
    Location
    Southern California
    Posts
    1,071
    Think I finally figured it out. The format of the textbox is percent. "N/A" is not a Percent it's a string.

    Change the format to text

    Where you have [MonthSDC]/[MonthCLMTS] Change it to Str(Round([MonthSDC]/[MonthCLMTS]*100,1)) & "%"

    That should give you something like 11.1 % Change the ,1) above to however many decimal points you want to show in the %

  5. #20
    tharless is offline Novice
    Windows 7 Access 2007
    Join Date
    Sep 2010
    Posts
    14
    Still the same result, I even deleted the box all together and took out the if statment and just went [MonthSDC]/[MonthCLMTS], and still get the same error when I close and reopen.

  6. #21
    RayMilhon is offline VIP
    Windows XP Access 2010 32bit
    Join Date
    Aug 2011
    Location
    Southern California
    Posts
    1,071
    Have you tried opening just the subreport to see what that field looks like? It's possible that the field is fine. The link between the main report and the subreport might have an issue?

  7. #22
    tharless is offline Novice
    Windows 7 Access 2007
    Join Date
    Sep 2010
    Posts
    14
    Yeah I tried that and still get the same result

  8. #23
    RayMilhon is offline VIP
    Windows XP Access 2010 32bit
    Join Date
    Aug 2011
    Location
    Southern California
    Posts
    1,071
    Try one more thing. Go into the design of the subreport go to the recordsouce I'm assuming it's a query. Just run the query Take a look at the values of those 2 fields. Make sure they're both numeric. If they are then I've got no clue.

  9. #24
    tharless is offline Novice
    Windows 7 Access 2007
    Join Date
    Sep 2010
    Posts
    14
    This is a mystery I will probably never figure out and at this point I don't care anymore. But you are a genious good sir, I checked the control source and it turns out that it wasn't running from a query, it was runing from a table. So I created a simple query on the table, did the calculation in the query using the, Str(Round([MonthSDC]/[MonthCLMTS]*100,1)) & "%", formula you provided and just used that for the text box's control source instead of using the formula in the report. We may never why it kept erroring out but at least I got it working now. Thank you so much for all your help.

  10. #25
    RayMilhon is offline VIP
    Windows XP Access 2010 32bit
    Join Date
    Aug 2011
    Location
    Southern California
    Posts
    1,071
    Glad I could help.

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

Similar Threads

  1. I'm back!
    By evander in forum General Chat
    Replies: 3
    Last Post: 02-27-2013, 08:29 PM
  2. Replies: 2
    Last Post: 12-08-2011, 02:27 PM
  3. Replies: 2
    Last Post: 09-01-2010, 09:51 PM
  4. Replies: 2
    Last Post: 04-27-2010, 01:25 PM
  5. Replies: 1
    Last Post: 11-08-2008, 10:40 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