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 » Running & Setting Up Queries
Site Map Home Register Authors List Search Today's Posts Mark Forums Read  

Count/Frequency of text within a table



 
 
Thread Tools Display Modes
  #1  
Old March 10th, 2005, 12:04 PM
external usenet poster
 
Posts: n/a
Default Count/Frequency of text within a table

To whom it may concern

Can you tell me how I can create an access query which
will look in a column and produce a count of how
frequently a piece of text or a number occurs within a
column of a Access table.

Thanks

Nick
  #2  
Old March 10th, 2005, 01:22 PM
Nikos Yannacopoulos
external usenet poster
 
Posts: n/a
Default

Nick,

You don't need a query to do that, all you need is a DLookup function like:

DCount("*","MyTable", "[Field1] Like '*SearchString*'")

which will return the number of records in table MyTable where the test
"SearchString" is contained in field Field1.

HTH,
Nikos

wrote:
To whom it may concern

Can you tell me how I can create an access query which
will look in a column and produce a count of how
frequently a piece of text or a number occurs within a
column of a Access table.

Thanks

Nick

  #3  
Old March 10th, 2005, 05:09 PM
JaRa
external usenet poster
 
Posts: n/a
Default

If you want a list of occurances for a certain field then you can also use:

SELECT FieldName, Count(*)
FROM TableName
GROUP BY FieldName
ORDER BY Count(*) DESC

- Raoul


" wrote:

To whom it may concern

Can you tell me how I can create an access query which
will look in a column and produce a count of how
frequently a piece of text or a number occurs within a
column of a Access table.

Thanks

Nick

 




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

Similar Threads
Thread Thread Starter Forum Replies Last Post
Prevent Blank Records being written. Need Help. Robert Nusz @ DPS Using Forms 4 December 29th, 2004 06:15 PM
transpose john Using Forms 1 November 24th, 2004 07:16 PM
Duplicate data Rob Green Database Design 3 November 7th, 2004 04:08 AM
Here's a shocker Mike Labosh General Discussion 2 October 26th, 2004 05:04 PM
Concatenatd fields in a query for a searching form Marc Running & Setting Up Queries 8 October 19th, 2004 08:49 PM


All times are GMT +1. The time now is 09:29 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.