A Microsoft Office (Excel, Word) forum. OfficeFrustration

If this is your first visit, be sure to check out the FAQ by clicking the link above. You may have to register before you can post: click the register link above to proceed. To start viewing messages, select the forum that you want to visit from the selection below.

Go Back   Home » OfficeFrustration forum » Microsoft Access » New Users
Site Map Home Register Authors List Search Today's Posts Mark Forums Read  

Basic sums in Access



 
 
Thread Tools Display Modes
  #1  
Old May 25th, 2004, 08:04 AM
julianp
external usenet poster
 
Posts: n/a
Default Basic sums in Access


I am a real access simpleton (although improving all the time). I have a
query and subsequent report which has three columns showing - names,
number of items required (using the count function) and number of items
dispatched (also using the count function) I would like to find a way
of showing on the report/query a new column showing the difference i.e.
(items required minus items dispatched)

Preferable using the wizard as I am an SQL Muppet.

Julian


------------------------------------------------
~~ Message posted from http://www.ExcelTip.com/
~~View and post usenet messages directly from http://www.ExcelForum.com/

  #2  
Old May 26th, 2004, 04:31 PM
Lynn Trapp
external usenet poster
 
Posts: n/a
Default Basic sums in Access

SELECT CoName, Count(ItemsRequired) AS CountOfItemsRequired,
Count(ItemsDispatched) AS CountOFItemsDispatched,
Count(ItemsRequired) - Count(ItemsDispatched) AS Difference
FROM YourTable
Group By CoName

I don't know of a wizard that would do that for you. Obviously, you will
have to supply the correct field names and table name.

--
Lynn Trapp
MS Access MVP
www.ltcomputerdesigns.com
Access Security: www.ltcomputerdesigns.com/Security.htm


"julianp" wrote in message
...

I am a real access simpleton (although improving all the time). I have a
query and subsequent report which has three columns showing - names,
number of items required (using the count function) and number of items
dispatched (also using the count function) I would like to find a way
of showing on the report/query a new column showing the difference i.e.
(items required minus items dispatched)

Preferable using the wizard as I am an SQL Muppet.

Julian


------------------------------------------------
~~ Message posted from http://www.ExcelTip.com/
~~View and post usenet messages directly from http://www.ExcelForum.com/



 




Thread Tools
Display Modes

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

vB code is On
Smilies are On
[IMG] code is Off
HTML code is Off
Forum Jump


All times are GMT +1. The time now is 06:49 PM.


Powered by vBulletin® Version 3.6.4
Copyright ©2000 - 2024, Jelsoft Enterprises Ltd.
Copyright ©2004-2024 OfficeFrustration.
The comments are property of their posters.