My error is somewhere in the DSum syntax.
I am trying to sum the columns on a subform, and put that sum value into the parent form field.I am getting an error that says it can't find the field "|" referred to in my expression. I tried using the regular Sum(..) , but I was getting some kinda of aggregate error. thanks.
sqlCmd = "Update [TableA] Set [TableA].[hours]= " & DSum([TableB].hours, [TableB], [TableB].id= Me.id)
& " where " & Me.id & " = [TableA].id
I am trying to sum the columns on a subform, and put that sum value into the parent form field.I am getting an error that says it can't find the field "|" referred to in my expression. I tried using the regular Sum(..) , but I was getting some kinda of aggregate error. thanks.
sqlCmd = "Update [TableA] Set [TableA].[hours]= " & DSum([TableB].hours, [TableB], [TableB].id= Me.id)
& " where " & Me.id & " = [TableA].id