Page 1 of 2 12 LastLast
Results 1 to 15 of 18
  1. #1
    Ray67 is offline Competent Performer
    Windows XP Access 2003
    Join Date
    Jul 2011
    Posts
    338

    Erro #Name?

    Hello

    I'm getting this error in reports.
    I put this code
    =[R_Fee Settlement BalanceTotal].[Report].[Fee Settlement Balance]+[R_Fee Settlement BalanceTotal].[Report].[Refunds]+[R_Fee Settlement BalanceTotal].[Report].[Medical Assoc Transfer]+[R_Fee Settlement BalanceTotal].[Report].[Returned Checks]+[R_OutstandingPaymentsGrandtotal].[Report].[SumOfAmount] in a text box and that's when i get the error.



    Once i take off this part [R_OutstandingPaymentsGrandtotal].[Report].[SumOfAmount] it works fine. I checked to see if the name is spelled right and it is. Not sure what i'm doing wrong.

    Thank you

  2. #2
    RuralGuy's Avatar
    RuralGuy is offline Administrator
    Windows 7 64bit Access 2010 32bit
    Join Date
    Mar 2007
    Location
    8300' in the Colorado Rocky Mountains
    Posts
    12,922
    If these are all controls on your Report then just use this syntax: Me.[Fee Settlement Balance]+Me.[...

  3. #3
    June7's Avatar
    June7 is online now VIP
    Windows XP Access 2010 32bit
    Join Date
    May 2011
    Location
    The Great Land
    Posts
    52,926
    Me qualifier doesn't work in ControlSource.

    R_OutstandingPaymentsGrandtotal
    is a subreport on main report R_Fee Settlement BalanceTotal?

    Pulling values from subreport can be tricky. Give the subreport a name different from the object it holds, like ctrGrand and the SumOfAmount textbox a name like tbxSum. Then in the expression try:

    + Reports![R_FeeSettlement BalanceTotal]!ctrGrand.Report.tbxSum
    Last edited by June7; 07-03-2012 at 10:25 AM.
    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.

  4. #4
    Ray67 is offline Competent Performer
    Windows XP Access 2003
    Join Date
    Jul 2011
    Posts
    338
    Thank you for your reply. It's still giving me the same error.

  5. #5
    RuralGuy's Avatar
    RuralGuy is offline Administrator
    Windows 7 64bit Access 2010 32bit
    Join Date
    Mar 2007
    Location
    8300' in the Colorado Rocky Mountains
    Posts
    12,922
    Is June7 correct and you are trying to reference controls on a SubReport?

  6. #6
    Ray67 is offline Competent Performer
    Windows XP Access 2003
    Join Date
    Jul 2011
    Posts
    338
    Yes June7 is correct. I'm trying to get totals on the main report from multiple sub reports.

  7. #7
    RuralGuy's Avatar
    RuralGuy is offline Administrator
    Windows 7 64bit Access 2010 32bit
    Join Date
    Mar 2007
    Location
    8300' in the Colorado Rocky Mountains
    Posts
    12,922
    The syntax is SubReportControlName.REPORT.ControlName. Is that what you are using?

  8. #8
    Ray67 is offline Competent Performer
    Windows XP Access 2003
    Join Date
    Jul 2011
    Posts
    338
    no i try what June7 told me + Reports![R_FeeSettlement BalanceTotal]!ctrGrand.Form.tbxSum.
    When i use syntax =[R_Fee Settlement BalanceTotal].[Report].[Fee Settlement Balance]+[R_Fee Settlement BalanceTotal].[Report].[Refunds]+[R_Fee Settlement BalanceTotal].[Report].[Medical Assoc Transfer]+[R_Fee Settlement BalanceTotal].[Report].[Returned Checks] it works fine. When i add a syntax for a new subreport thats when i get the error.

  9. #9
    RuralGuy's Avatar
    RuralGuy is offline Administrator
    Windows 7 64bit Access 2010 32bit
    Join Date
    Mar 2007
    Location
    8300' in the Colorado Rocky Mountains
    Posts
    12,922
    What syntax are you adding? Can you post it?

  10. #10
    June7's Avatar
    June7 is online now VIP
    Windows XP Access 2010 32bit
    Join Date
    May 2011
    Location
    The Great Land
    Posts
    52,926
    Sorry, I mixed Report and Form in the syntax (now corrected post). Instead of Form use Report.

    Did you also rename the controls as I suggested?

    I just did a quick test of a syntax. It was not necessary to reference the parent form. This worked:

    = ctrGrand.Report.tbxSum

    However, I am using Access 2007/2010. From what I remember, Access 2003 will accept the syntax.
    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.

  11. #11
    Ray67 is offline Competent Performer
    Windows XP Access 2003
    Join Date
    Jul 2011
    Posts
    338
    I corrected what june7 said but it still doesn't work.
    Here is the syntax =[R_Fee Settlement BalanceTotal].Report.[Fee Settlement Balance]+[R_Fee Settlement BalanceTotal].Report.Refunds+[R_Fee Settlement BalanceTotal].Report.[Medical Assoc Transfer]+[R_Fee Settlement BalanceTotal].Report.[Returned Checks]+Reports![R_FeeSettlement BalanceTotal]!ctrGrand.Report.tbxSum

  12. #12
    June7's Avatar
    June7 is online now VIP
    Windows XP Access 2010 32bit
    Join Date
    May 2011
    Location
    The Great Land
    Posts
    52,926
    Try the revised syntax suggested in my last post. Reference to parent form not needed.
    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.

  13. #13
    Ray67 is offline Competent Performer
    Windows XP Access 2003
    Join Date
    Jul 2011
    Posts
    338
    It still doesn't work.

    =[R_Fee Settlement BalanceTotal].Report.[Fee Settlement Balance]+[R_Fee Settlement BalanceTotal].Report.Refunds+[R_Fee Settlement BalanceTotal].Report.[Medical Assoc Transfer]+[R_Fee Settlement BalanceTotal].Report.[Returned Checks]+ctrGrand.Report.tbxSum

  14. #14
    RuralGuy's Avatar
    RuralGuy is offline Administrator
    Windows 7 64bit Access 2010 32bit
    Join Date
    Mar 2007
    Location
    8300' in the Colorado Rocky Mountains
    Posts
    12,922
    Does just ctrGrand.Report.tbxSum give you a value without referencing the other SubReport?

  15. #15
    Ray67 is offline Competent Performer
    Windows XP Access 2003
    Join Date
    Jul 2011
    Posts
    338
    If i do that i get this message Enter parameter valve ctrGrand

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

Similar Threads

  1. Dim DAO as DB Erro
    By jo15765 in forum Programming
    Replies: 7
    Last Post: 06-23-2011, 11:52 AM
  2. Runtime Erro will not install
    By drunkinmunki in forum Access
    Replies: 4
    Last Post: 12-16-2010, 06:56 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