locked
FUNC Syntax advise RRS feed

  • Question

  • Hi

    I have a situation as below;

    I need to get SUM of Events.BusinessObjects.tblEventStaffPayrollAlterations.Credit property. How to implement FUNC here please?

    Thanks

    Regards


    • Edited by Y a h y a Wednesday, April 20, 2016 8:30 AM
    Wednesday, April 20, 2016 8:29 AM

Answers

  • Try this:

    Return Me.tblEventStaffPayrollAlterations.Sum(Function(r) r.Credit)

    • Proposed as answer by Reed KimbleMVP Wednesday, April 20, 2016 4:33 PM
    • Marked as answer by Y a h y a Thursday, April 21, 2016 12:11 AM
    Wednesday, April 20, 2016 9:19 AM

All replies

  • Try this:

    Return Me.tblEventStaffPayrollAlterations.Sum(Function(r) r.Credit)

    • Proposed as answer by Reed KimbleMVP Wednesday, April 20, 2016 4:33 PM
    • Marked as answer by Y a h y a Thursday, April 21, 2016 12:11 AM
    Wednesday, April 20, 2016 9:19 AM
  • Many thanks Viorel. 
    • Edited by Y a h y a Thursday, April 21, 2016 12:12 AM
    Thursday, April 21, 2016 12:11 AM