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 / Forms / December 2007

Tip: Looking for answers? Try searching our database.

how do you add a counter in access?

Thread view: 
Enable EMail Alerts  Start New Thread
Thread rating: 
Steve - 04 Dec 2007 12:31 GMT
I need access to find all records for one date and then display how many
reason codes were input on that day (out of 15 different codes) in 15
different boxes. Eg. how many of reason code 1 were input = ? how many of
reason code 2 = ? etc...
scubadiver - 04 Dec 2007 13:28 GMT
I hope you don't mind me saying this: It doesn't sound very normalised.

Do you want the total number entered or the total for each code?

> I need access to find all records for one date and then display how many
> reason codes were input on that day (out of 15 different codes) in 15
> different boxes. Eg. how many of reason code 1 were input = ? how many of
> reason code 2 = ? etc...
BruceM - 04 Dec 2007 14:32 GMT
It isn't necessarily un-normalized (although it could be, depending on the
details).  It sounds to me as if each record has a reason, which is OK in
terms of normalization if the reason is selected from a combo box or some
such thing, but is stored in a single field.  If there are 15 Reason fields
that would be a different story.
If there is a single Reason field, a Totals query could be used to count the
reason codes.  Help has more about Totals queries.  In general, create a
query including the date (I will call the field ReasonDate) and the
ReasonCode.  Set a critieria for ReasonDate (for instance, put [Enter Date]
in the Criteria row for ReasonDate).  Click the Totals icon (sort of a
sideways "M") on the Query Design toolbar.  Leave "Group By" in the Total
row for ReasonDate, and change it to Count in the ReasonCode column.  Switch
to Datasheet view to see the results.  If OK, a report or a form (either
Continuous or Datasheet as the Default View) can be based on the query.

>I hope you don't mind me saying this: It doesn't sound very normalised.
>
[quoted text clipped - 4 lines]
>> different boxes. Eg. how many of reason code 1 were input = ? how many of
>> reason code 2 = ? etc...
 
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.