简体   繁体   中英

Subform totals value to textbox in form returns error

I Just want to show totals from subform in a textbox on Form, but it returns error, tried multiple solutions but no luck, even a new query.

Tried some Dsum , Dlookup , Sum and other solutions that I google'd but with no luck, like

=Sum([Pitanja subform1].[Form]![ID])
=Sum([Pitanja subform1].[Form]![Datum_prijema])

#Error

Just want "Total" value (like in example = 3) to be shown in textbox Broj upita

Image: https://ibb.co/9NBfnsF

Do Sum calculation in texbox in subform header or footer section: =Sum([Datum_prijema]) . The textbox will not show with Datasheet view but is still available for reference.

Then main form textbox references subform's textbox: =[Pitanja subform1].Form.tbxSum

The technical post webpages of this site follow the CC BY-SA 4.0 protocol. If you need to reprint, please indicate the site URL or the original address.Any question please contact:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM