PC Review


Reply
Thread Tools Rate Thread

Basic Question About Queries Tab

 
 
=?Utf-8?B?VGhlIHBhcmF3b24=?=
Guest
Posts: n/a
 
      24th Feb 2005
Is there a way to make subtotals in Access if no primary key is assigned.
For example: Bob and Sharon share a cash register. I have a spreadsheet with
both of there names hundreds of times in column "A". I have the amount they
charged at transaction in column "B". Is there a way to show Bobs name once
and Sharon's name once with a grand total of all the money they have charged?

Any help appreciated.


 
Reply With Quote
 
 
 
 
JohnFol
Guest
Posts: n/a
 
      24th Feb 2005
Yes, but you don't explain what you are using to show the grand total. I
will presume it's a Form or Report.

Have a look at
DSum ("TransactionCharge", "TransactionsTable")

and also
RunningSum


"The parawon" <(E-Mail Removed)> wrote in message
news:F8A8E636-9F64-4B99-827F-(E-Mail Removed)...
> Is there a way to make subtotals in Access if no primary key is assigned.
> For example: Bob and Sharon share a cash register. I have a spreadsheet
> with
> both of there names hundreds of times in column "A". I have the amount
> they
> charged at transaction in column "B". Is there a way to show Bobs name
> once
> and Sharon's name once with a grand total of all the money they have
> charged?
>
> Any help appreciated.
>
>



 
Reply With Quote
 
Brian
Guest
Posts: n/a
 
      24th Feb 2005
"The parawon" <(E-Mail Removed)> wrote in message
news:F8A8E636-9F64-4B99-827F-(E-Mail Removed)...
> Is there a way to make subtotals in Access if no primary key is assigned.
> For example: Bob and Sharon share a cash register. I have a spreadsheet

with
> both of there names hundreds of times in column "A". I have the amount

they
> charged at transaction in column "B". Is there a way to show Bobs name

once
> and Sharon's name once with a grand total of all the money they have

charged?
>
> Any help appreciated.
>


Assuming that you have the table in Access (either linked to, or imported
from, your spreadsheet), that it's called "Cash", and it has fields "Person"
and "Amount", then this query will do it for you:

SELECT Person, SUM(Amount) PersonTotal FROM Cash GROUP BY Person


 
Reply With Quote
 
 
 
Reply

Thread Tools
Rate This Thread
Rate This Thread:

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are Off


Similar Threads
Thread Thread Starter Forum Replies Last Post
Basic question about web queries =?Utf-8?B?RGF2aWQ1NQ==?= Microsoft Excel Programming 0 6th Dec 2005 08:05 AM
Basic performance and good design question abt forms/subforms queries Veli Izzet Microsoft Access 3 29th Aug 2005 07:49 AM
basic queries about overclocking Jon D DIY PC 11 25th Jul 2005 03:50 PM
basic queries about overclocking Jon D Computer Hardware 11 25th Jul 2005 03:50 PM
basic queries on moviemaker inquirer Windows XP MovieMaker 3 10th Aug 2004 11:09 PM


Features
 

Advertising
 

Newsgroups
 


All times are GMT +1. The time now is 06:22 AM.