Home | Contact Us | FAQ | Search & Site Map | Link to Us
Sign In | Join | Other 45 Sites in Network
Home
Discussion GroupsFormsForms ProgrammingQueriesModules / DAO / VBAReports / PrintingMacrosDatabase DesignSecurityConversionImporting / LinkingSQL Server / ADPMultiuser / NetworkingReplicationSetup / ConfigurationDeveloper ToolkitsActiveX ControlsNew UsersGeneral 1General 2
Access DirectoryToolsTutorialsUser Groups
Related Topics
SQL ServerOther DB ProductsMS OfficeMore Topics ...

MS Access Forum / Queries / July 2008

Tip: Looking for answers? Try searching our database.

Count columns

Thread view: 
Enable EMail Alerts  Start New Thread
Thread rating: 
Igor G. - 31 Jul 2008 12:36 GMT
I have table with products data... example:
---------------------------------------------------------------------
Date              Time    Data1    Data2    Data3    Data4    ...
---------------------------------------------------------------------
28.07.2008    08:00     2            8           4         5        ...
29.07.2008    08:00     1            3           2         1        ...
29.07.2008    10:00     9            6           8         8        ...
30.07.2008    17:15     0            7           4         7        ...
---------------------------------------------------------------------
COUNT:                      12         23         16        21       ...

Hew to create query for count records in columns, like in example?
Thanks!
Rick Brandt - 31 Jul 2008 13:19 GMT
> I have table with products data... example:
> ---------------------------------------------------------------------
[quoted text clipped - 14 lines]
> Hew to create query for count records in columns, like in example?
> Thanks!

First, those are "sums", not "counts" (though a couple of them in your
example are incorrect).

Second, you would not do that in a query, you would do it in a report by
using...

=Sum(Data1)
=Sum(Data2)
etc..

in the ReportFooter.

Signature

Rick Brandt, Microsoft Access MVP
Email (as appropriate) to...
RBrandt   at   Hunter   dot   com

 
Sign In
Join
My Latest Posts
My Monitored Threads
My Blog
My Photo Gallery
My Profile
My Homepage

Start New Thread
Enable EMail Alerts
Rate this Thread



©2008 Advenet LLC   Privacy Policy - Terms of Use
This website includes both content owned or controlled by Advenet as well as content owned or controlled by third parties.