I have the following code:
=DSum("[ObligationAmount]","Tbl_Current_Year_Information","[FiscalYear]= '" & [Curr_Fy] & "'"
The problem is that [Curr_Fy] shouldnot have brackets around it becasue it is a variable that I created to hold the current fiscal year.
Whenever I try to take the brackets off, it puts them on again. Can you have user defined variables in the dsum function?
=DSum("[ObligationAmount]","Tbl_Current_Year_Information","[FiscalYear]= '" & [Curr_Fy] & "'"
The problem is that [Curr_Fy] shouldnot have brackets around it becasue it is a variable that I created to hold the current fiscal year.
Whenever I try to take the brackets off, it puts them on again. Can you have user defined variables in the dsum function?