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. |
|
|
Thread Tools | Display Modes |
#1
|
|||
|
|||
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
|
|||
|
|||
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
|
|||
|
|||
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 | |
|
|
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 |