Hello,
I have a text field on the report with the following dsum function in it
=DSum("[AmountReq]","Qry_Main","strWhereClause2 & [Approp] = 'F&E'")
I keep getting an "error#". The filed strWhereClause is a condition that is generated in code and varies each time depending on what the user selects on the form. So i create the where part and assign it to the variable strWhereClause.
I think the syntax is wrong, but do not know if you can have variables in the dsum function.
Any help is greatly appreciated
I have a text field on the report with the following dsum function in it
=DSum("[AmountReq]","Qry_Main","strWhereClause2 & [Approp] = 'F&E'")
I keep getting an "error#". The filed strWhereClause is a condition that is generated in code and varies each time depending on what the user selects on the form. So i create the where part and assign it to the variable strWhereClause.
I think the syntax is wrong, but do not know if you can have variables in the dsum function.
Any help is greatly appreciated