How do I Sum monthly expenses,monthly Budgeted, and monthly Variance of these to into a Year to Date Running Total and out put it to a InfoPath Form; each time a user opens it up. Example
Monthly Expense Monthly Budgeted Monthly Variance
$12,000 $14,000 $2,000
YTD Expenses YTD Budgeted YTD Variance
$90,000 $140,000 $50,000
The YTD has to be retrieved from the SQL database from previous months. Also, when the user finish entering the current month and submits it to the databse, it will pull that information from the database and Sum it up right that and there so that the user can see their current total after their submission.
I have already figure out how to submit to the SQL database.
Thanks for all the help ahead of time.
Michael