C
chris1
I have textbox on a report (Detail Section) that uses the DSum domain
function. I am trying to add an amount from a table with a criteria value
from a Form. The following is what I have:
=Dsum("[Amount]","tbl_name","[Manager]=" & Forms!frm_name![Manager])
I get the #Error display. If I take the criteria argument out it works fine
so I know the error is in the criteria section.
By the way, in VBA I assign a variable to the function and it works:
dbltemp = DSum("[Amount]","tbl_name","[Manager] = [Forms]![frm_name]![Manager]
")
Why do I get an error in th Textbox and the result I want in VBA? What is the
fix in the TextBox control? Please help! Thank you!
function. I am trying to add an amount from a table with a criteria value
from a Form. The following is what I have:
=Dsum("[Amount]","tbl_name","[Manager]=" & Forms!frm_name![Manager])
I get the #Error display. If I take the criteria argument out it works fine
so I know the error is in the criteria section.
By the way, in VBA I assign a variable to the function and it works:
dbltemp = DSum("[Amount]","tbl_name","[Manager] = [Forms]![frm_name]![Manager]
")
Why do I get an error in th Textbox and the result I want in VBA? What is the
fix in the TextBox control? Please help! Thank you!