I am at a loss to get Dsum to work on my form.
FieldName represents a number.
where the critea is "[FieldName2]=[form name].Form![control name]
If I use as criteria: "[FieldName]=1" I get an answer.
If I use the following criteria, I get Error as a result.
I need to show the sum of the [FieldName] where the form is showing the record ID displayed in [control name] on the form.
Thank you.
Robert
FieldName represents a number.
Code:
=Dsum("[fieldname]","[qryName]", "[criteria]")
where the critea is "[FieldName2]=[form name].Form![control name]
If I use as criteria: "[FieldName]=1" I get an answer.
If I use the following criteria, I get Error as a result.
Code:
=Dsum("[FieldName]","[qryName]", "[FieldName]=[form name].Form![control name]")
I need to show the sum of the [FieldName] where the form is showing the record ID displayed in [control name] on the form.
Thank you.
Robert