Hi there,
I was wondering if anybody could help a relative newcomer to InfoPath. I have been playing with it for several weeks now, but i'm am having troubles creating 'sums' and 'counts'...
I submit my forms to an Access 2003 database. Essentially, there is only the one 'Main Data Connection' - which the data is submitted to and queried from.
When the database is queried, each record which I submitted to the database, is displayed in a new Repeating Section. So, after querying the database for all records of a specified Date, several results are displayed.
The objective: e.g. each record has a field 'Parts_Cost'.
In a seperate view, I wish to display the Sum of the 'Parts_Cost' fields (for each record displayed from the resutls of the query).
When I insert a Text Box Control, InfoPath requires me to Bind the Text Box to a field from the Form's Data Source. To do this I created an extra field in the Access Database called 'Sum_Parts_Cost'. The formula I then enter into this control is: 'sum(@Parts_Cost)'. When I preview the form, the value in this field stays 0, regardless of the values in 'Parts_Cost' for each record. I have no idea what to try next.
I hope that I have provided sufficient information - but if more is required I will certainly get back to you. I would appreciate absolutely any help possible. I may even be trying to do something, which just cant be done...
many thanks,
Adam