=SUm in subform

  • Thread starter Thread starter Regan
  • Start date Start date
R

Regan

Hi, i have a subform(datasheet view) called 'Child4' for a timesheet.
Employees name and a Date is on the form, and the details of what they have
done is entered into the sub form. There is a field called 'Units'. Where
the employee enters how much time they have spent on a particule task. What
i want to do is be able to show Total Units in the 'Timesheet' form so that
each time they enter a new task the total is automatically adjusted so they
can see there total units so far.
Thanks if you can help
 
Add a footer to the subform and place a textbox called something like
txtTotal in it. For design purposes, you can set both of them to zero inches
in height.

Set the controlsource of the textbox to:

= Sum([Units])

Now, if you've set the height to zero, on the main form, place another
textbox and set it's controlsource to:

Forms!FormName!SubFormControlName.Form!txtTotal
--
Arvin Meyer, MCP, MVP
Microsoft Access
Free Access downloads
http://www.datastrat.com
http://www.mvps.org/access
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Similar Threads

Excel Time Rounding in Excel 2
Subform Filter 1
Displaying Week Ending 2
Grouping query date by work week 1
Calculate field sum of today 5
Basic form and subform question 6
sum hours 1
Sum the total values in a subform 6

Back
Top