Results 1 to 7 of 7
  1. #1
    nypedestrian is offline Novice
    Windows 7 64bit Access 2007
    Join Date
    Aug 2011
    Posts
    6

    Totals in Datasheet View only shows COUNT

    Hi! I am redoing my current employer's database (selling collectible coins). In the OrderDetails form (Datasheet view) I created an unbound field to compute Qty*Unit Price per Item ordered. I would ideally like to use Access 2007's Totals option to get the total of the whole order but when I click on the dropdown, the only option available is COUNT. Anyone else encounter this? Thank you in advance for any help.

  2. #2
    ketbdnetbp is offline Competent Performer
    Windows 7 32bit Access 2003
    Join Date
    Mar 2011
    Location
    Midwest
    Posts
    254

    nypedestrian -

    Haven't encountered that which you have described and don't know which dropdown you are referring to "w/Count Only".

    However, as an alternative, you could add another unbound textbox to the footer of the form/subform whose control source sums the first calculated control, i.e. =Sum([NameOfFirstUnboundTextbox]) which should get the amount of the total order.

    Just a thought.

    Jim

  3. #3
    nypedestrian is offline Novice
    Windows 7 64bit Access 2007
    Join Date
    Aug 2011
    Posts
    6
    Quote Originally Posted by ketbdnetbp View Post
    Haven't encountered that which you have described and don't know which dropdown you are referring to "w/Count Only".

    However, as an alternative, you could add another unbound textbox to the footer of the form/subform whose control source sums the first calculated control, i.e. =Sum([NameOfFirstUnboundTextbox]) which should get the amount of the total order.

    Just a thought.

    Jim
    Thanks for the reply! I'm attaching a screenshot of my problem, maybe it'll be easier to understand. I tried the sum in the footer but I don't know if it will work when the form view is Datasheet.

    Item Total is the unbound control that calculates Qty*UnitPrice

  4. #4
    rpeare is offline VIP
    Windows XP Access 2003
    Join Date
    Jul 2011
    Posts
    5,442
    Why would you total them in a query? If you are printing an invoice you can do the totalling on the report that prints the invoice, or if it's on a form you can perform the total on the form. Is there a specific reason why you're trying to put a total in a query?

  5. #5
    nypedestrian is offline Novice
    Windows 7 64bit Access 2007
    Join Date
    Aug 2011
    Posts
    6
    Quote Originally Posted by rpeare View Post
    Why would you total them in a query? If you are printing an invoice you can do the totalling on the report that prints the invoice, or if it's on a form you can perform the total on the form. Is there a specific reason why you're trying to put a total in a query?

    It's not a query. It's a form based on a table in datasheet view - not in single or continuous form. Attached is the reason why I wanted to put a total -- so that the person would know what the order total is. The other columns (Quantity & Unit Price) total properly.

  6. #6
    rpeare is offline VIP
    Windows XP Access 2003
    Join Date
    Jul 2011
    Posts
    5,442
    Ahhh gotcha.

    Have you tried putting an unbound text box on your main form that is something like

    =sum(forms!mainformname.subformname!currencyfield)

    so let's say in your case your main form was called

    ORDERINFORMATION
    your subform (data sheet) was called
    ORDERDETAIL
    and you want to total the field
    ITEMTOTAL

    your formula would be

    =sum(forms!orderinformation.orderdetail!itemtotal)

    I haven't tested as I rarely use forms/subforms but it should give you what you want

  7. #7
    nypedestrian is offline Novice
    Windows 7 64bit Access 2007
    Join Date
    Aug 2011
    Posts
    6
    Quote Originally Posted by rpeare View Post
    Ahhh gotcha.

    Have you tried putting an unbound text box on your main form that is something like

    =sum(forms!mainformname.subformname!currencyfield)

    so let's say in your case your main form was called

    ORDERINFORMATION
    your subform (data sheet) was called
    ORDERDETAIL
    and you want to total the field
    ITEMTOTAL

    your formula would be

    =sum(forms!orderinformation.orderdetail!itemtotal)

    I haven't tested as I rarely use forms/subforms but it should give you what you want
    Didn't really want the total of the items to be a part of the main form. I found this on another forum

    http://www.access-programmers.co.uk/...d.php?t=201438

    Looks like I will have to resort to a query.

Please reply to this thread with any new information or opinions.

Similar Threads

  1. Datasheet view in tab only
    By cdzajp in forum Forms
    Replies: 1
    Last Post: 06-22-2011, 12:44 PM
  2. SearchBox and Datasheet View
    By gio25 in forum Forms
    Replies: 3
    Last Post: 03-23-2011, 06:07 PM
  3. Replies: 4
    Last Post: 01-14-2011, 10:37 AM
  4. Subform, Totals, in Datasheet view
    By eww in forum Programming
    Replies: 1
    Last Post: 09-27-2010, 10:22 AM
  5. Datasheet View
    By Evgeny in forum Programming
    Replies: 6
    Last Post: 04-28-2010, 10:17 AM

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •  
Other Forums: Microsoft Office Forums