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 Programming / May 2007

Tip: Looking for answers? Try searching our database.

Is it possible to count words in a memo field

Thread view: 
Enable EMail Alerts  Start New Thread
Thread rating: 
dbl - 02 May 2007 10:24 GMT
Hi is it possible to count the number of times the words "Invoice Chased"
has been entered in a memo field?  If it is how do I go about it?

Thanks Bob
missinglinq - 02 May 2007 12:40 GMT
Where:

MField is the name of your memo filed
SField is the search string
SFieldCount is the number of occurances of the search string

SFieldCount = (Len([MField]) - Len(Replace([MField], SField, ""))) / Len
(SField)

You're replacing the search string with a zero length string, comaparing the
length of the memo field before and after the replacement(s) then dividing
the difference by the length of the search string

Signature

There's ALWAYS more than one way to skin a cat!

Answers/posts based on Access 2000

ralph - 03 May 2007 06:38 GMT
dddddddddddddddddddddddddddddd
> Where:
>
[quoted text clipped - 9 lines]
> length of the memo field before and after the replacement(s) then dividing
> the difference by the length of the search string
ralph - 03 May 2007 06:47 GMT
kan ik niks aan doen

> Where:
>
[quoted text clipped - 9 lines]
> length of the memo field before and after the replacement(s) then dividing
> the difference by the length of the search string
Ofer Cohen - 02 May 2007 12:46 GMT
Try using dcount with a wild card (Like + *)

DCount("*","[TableName]","[FieldName] Like '*Invoice Chased*'")

Signature

Good Luck
BS"D

> Hi is it possible to count the number of times the words "Invoice Chased"
> has been entered in a memo field?  If it is how do I go about it?
>
> Thanks Bob
dbl - 02 May 2007 15:05 GMT
Sorted thanks, for the help and quick response.
Bob
> Try using dcount with a wild card (Like + *)
>
[quoted text clipped - 4 lines]
>>
>> Thanks Bob
missinglinq - 06 May 2007 15:39 GMT
Just out of curiosity, were you trying to count the times this phrase
appeared in the memo field of one record, or of all records in the table?

Signature

There's ALWAYS more than one way to skin a cat!

Answers/posts based on Access 2000

 
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.