I'm new to macros, but thought I was getting close:
I've written the macro below to have Summary Fields subtraction done and the test of the macro shows it to be successful, but when I try to insert it and use it in a derived field, my results down the column shows "N/A".
Sub FlexMedBal()
x=Val(SumField$("FlexMedDed","Derived Field",0,"Sum"))
y=Val(SumField$("FlexMedReimb","Derived Field",0,"Sum"))
Val(x-y)
End Sub
ThanX for any suggestions !
I've written the macro below to have Summary Fields subtraction done and the test of the macro shows it to be successful, but when I try to insert it and use it in a derived field, my results down the column shows "N/A".
Sub FlexMedBal()
x=Val(SumField$("FlexMedDed","Derived Field",0,"Sum"))
y=Val(SumField$("FlexMedReimb","Derived Field",0,"Sum"))
Val(x-y)
End Sub
ThanX for any suggestions !