Summing in Datasheet

grenee

Registered User.
Local time
Today, 12:50
Joined
Mar 5, 2012
Messages
212
Good day all.

My form is a datasheet with 2 fields: "Product" and "Quantity". Obviously I can't add a calculated field in this type of form; however I would like the word " Total" to display in the "Quantity" field just under the last record. I would also like the sum of the "Quantity" field to display at the bottom of the "Quantity" field in the empty record below the last record.

I would be grateful for advise on this problem.
 
Good evening.

Cliick totals-icon on the ribbon
 
Obviously I can't add a calculated field in this type of form;.

Actually you can add a calculated control ("fields" are in tables, queries and recordsets) to a datasheet form. It is just that it isn't displayed.

Place the calculated control in the footer in Design View. Despite not being displayed in Datasheet View it can still be referred to from other objects.

For example, a control in the footer of a subform datasheet can be referred to in the ControlSource of a control on the main form where the result can be displayed.
 
Thanks; but I can't find the totals-Icon you are referring to.
 
Thanks for this useful explanation: however, I am trying to understand how to get the totals displayed in the actual datasheet. I am seeing this example in the Northwind sample database in a form "Order subform for Order details". I want to know how this is done.
 
If I understand you correctly, the subform total is in the footer of that form.
That is then referred to on the main form, just below the subform.

The footer is not visible when you use the main form.
 
Thank.

not really; there in no calculated control. The sum of the field is directly on the bottom of the same Datasheet. Actually it is in the 2nd row below the last record
 
Picture please?

Thank.

not really; there in no calculated control. The sum of the field is directly on the bottom of the same Datasheet. Actually it is in the 2nd row below the last record
 
Hope this helps.


Order Subform for Order Details
Product Qty Unit Price Discount Total Price Status Lamp Shade 0 $10.00 0.00% $0.00 None Table Lamp 6 $40.00 0.00% $240.00 Allocated Table Lamp 20 $40.00 0.00% $800.00 Allocated
26

$1,040.00
 
It does not. :(

What version of Access are you using as I only have 2003.

Attached is my Order Subform
 

Attachments

  • order_subform.jpg
    order_subform.jpg
    90.7 KB · Views: 68
The Datasheet distorts when placed in this window. And I can't get an image import.
 
I copy the screen (either Shift & PrtSc or Alt & PrtSc)
Then paste in to Paint, Save and upload that file.
 
ok I tried it as an attachment
 

Attachments

  • image001.jpg
    image001.jpg
    91.4 KB · Views: 71

Users who are viewing this thread

Back
Top Bottom