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  

counting in fields



 
 
Thread Tools Display Modes
  #1  
Old January 27th, 2010, 05:44 AM posted to microsoft.public.access.gettingstarted
justme43
external usenet poster
 
Posts: 2
Default counting in fields

Please help
Please note I am not use to using Access
I would like to be able to count items in fields. I have a table which I
produced by doing a query of 2 tables and making it a query table.
The fields are Client no, Date, nationality, gender, postcode, marital status,
and a few others.
I can do a cross tab query and count the items in each in field.
However what I am having trouble doing is bring this together in the one
report or query.
I am also open to suggestion as to better ways of obtaining my data.

Thanking you for any help that you are willing to supply.
please remember I am not an access user so simple is my best option

  #2  
Old January 27th, 2010, 06:10 AM posted to microsoft.public.access.gettingstarted
John W. Vinson
external usenet poster
 
Posts: 18,261
Default counting in fields

On Wed, 27 Jan 2010 05:44:22 GMT, "justme43" u57805@uwe wrote:

Please help
Please note I am not use to using Access
I would like to be able to count items in fields. I have a table which I
produced by doing a query of 2 tables and making it a query table.
The fields are Client no, Date, nationality, gender, postcode, marital status,
and a few others.
I can do a cross tab query and count the items in each in field.
However what I am having trouble doing is bring this together in the one
report or query.
I am also open to suggestion as to better ways of obtaining my data.

Thanking you for any help that you are willing to supply.
please remember I am not an access user so simple is my best option


To get a simple answer you'll need to ask a simpler question...

What is it that you're counting?

What do you want as the final result?

It will probably require several queries if you want to count the number of
records for each nationality, for each gender, etc. etc.; the Count operator
in Access counts *records* in the table, and you want each record to be
counted several times by several different criteria.
--

John W. Vinson [MVP]
  #3  
Old January 27th, 2010, 07:12 AM posted to microsoft.public.access.gettingstarted
justme43
external usenet poster
 
Posts: 2
Default counting in fields

I want to have a report that will give me

[Client no] [agegroup], [gender], [nationality], [postcode],[employment],
[benifits], [volunteer] by service utilised and date of service.

I realise that Postcode and Nationality will probably need to be done
seperately.

At the moment I do this in excel and then convert it to a pivot table which
works fine but I was hoping that I could do it in access where the client
data is held.

I can get the counts by doing a crosstab query but I dont know how to get one
report from these. (they are done by each field at the moment)

I would also like to be able to select dates for my report eg from 1st jan
2010 to 7th jan 2010

I do so hope this makes sense.

John W. Vinson wrote:
Please help
Please note I am not use to using Access

[quoted text clipped - 9 lines]
Thanking you for any help that you are willing to supply.
please remember I am not an access user so simple is my best option


To get a simple answer you'll need to ask a simpler question...

What is it that you're counting?

What do you want as the final result?

It will probably require several queries if you want to count the number of
records for each nationality, for each gender, etc. etc.; the Count operator
in Access counts *records* in the table, and you want each record to be
counted several times by several different criteria.


  #4  
Old February 1st, 2010, 04:42 PM posted to microsoft.public.access.gettingstarted
Daryl S[_2_]
external usenet poster
 
Posts: 881
Default counting in fields

Justme -

If you have set up a crosstab query for each of your variables, and the
variables are the column headers, and the rows (first column) of each of
these queries is the same, then you can create a single query that combines
them all. Open a new query in design mode and add each of the crosstab
queries as you would add tables. Join them all on the first field. If there
are any of these crosstab queries that might not have all the values in the
first column, then join them with an outer join (double-click on the join and
select ALL Records from the crosstab that will have all the values in the
first field).

Then add the qryname.* field from all the crosstabs to the field list in the
report grid. You need to use the qryname.* for each of these in case there
is a time period where there are no records for a particular value (for
example all clients were females in the week). This does cause that first
column to repeat for each crosstab, but that is a small price to pay for the
simplicity and flexibility you get with this. If you add another postcode
to your data, it will automatically show up.

Hope that helps!
--
Daryl S


"justme43" wrote:

Please help
Please note I am not use to using Access
I would like to be able to count items in fields. I have a table which I
produced by doing a query of 2 tables and making it a query table.
The fields are Client no, Date, nationality, gender, postcode, marital status,
and a few others.
I can do a cross tab query and count the items in each in field.
However what I am having trouble doing is bring this together in the one
report or query.
I am also open to suggestion as to better ways of obtaining my data.

Thanking you for any help that you are willing to supply.
please remember I am not an access user so simple is my best option

.

 




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 07:01 AM.


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