Welcome to SPN

Register and Join the most happening forum of Sikh community & intellectuals from around the world.

Sign Up Now!
  1.   Become a Supporter    ::   Make a Contribution   
    Target (Recurring Monthly): $200 :: Achieved: $98

Counting Comments

Discussion in 'Information Technology' started by PeterM, Nov 8, 2005.

  1. PeterM

    PeterM
    Expand Collapse
    Guest

    I have a memo field on a form. I need to count the number of specific
    occurrances of a text string within the comment. The values in the comment
    field are in no particular order.

    Comment field would have
    11/7/2005
    11/7/2005
    11/4/2005
    11/5/2005

    I need to determine that for 11/7/2005, the count is 2, and for 11/5/2005
    the count is 1 and for 11/4/2005 the count is 1.

    Is there a way to do this via a form or SQL statement?

    Thanks in advance for your help!
     
  2. Loading...

    Similar Threads Forum Date
    Gurmat Vichaar | Futility Of Counting Paaths | April 12, 2016 Gurmat Vichaar Apr 23, 2016
    Malaysia Malaysian 2013 Election - Vote Counting Underway Breaking News May 5, 2013
    No Counting Allowed in Gurmatt Jap Ji Sahib Dec 15, 2012
    Christianity Ye Olde King James Version, 400 Years and Counting Interfaith Dialogues Mar 27, 2011
    Will counting caste help to reduce inequality? Hard Talk May 11, 2010

  3. Douglas J Steele

    Douglas J Steele
    Expand Collapse
    Guest

    Are you saying that those 4 dates are contained in the same memo field?
    There's no way you're going to be able to count them using SQL. You'll have
    to write a VBA function (which you could, of course, then call from SQL),
    but unless there's something in the text that clearly delineates each date,
    it'll be quite slow.

    --
    Doug Steele, Microsoft Access MVP
    http://I.Am/DougSteele
    (no e-mails, please!)


    "PeterM" <PeterM@discussions.microsoft.com> wrote in message
    news:E6F039C9-E4B4-434B-8EC6-495E28091993@microsoft.com...
    > I have a memo field on a form. I need to count the number of specific
    > occurrances of a text string within the comment. The values in the

    comment
    > field are in no particular order.
    >
    > Comment field would have
    > 11/7/2005
    > 11/7/2005
    > 11/4/2005
    > 11/5/2005
    >
    > I need to determine that for 11/7/2005, the count is 2, and for 11/5/2005
    > the count is 1 and for 11/4/2005 the count is 1.
    >
    > Is there a way to do this via a form or SQL statement?
    >
    > Thanks in advance for your help!
     
Since you're here... we have a small favor to ask...

More people are visiting & reading SPN than ever but far fewer are paying to sustain it. Advertising revenues across the online media have fallen fast. So you can see why we need to ask for your help. Donating to SPN's is vote for free speech, for diversity of opinions, for the right of the people to stand up to religious bigotry. Without any affiliation to any organization, this constant struggle takes a lot of hard work to sustain as we entirely depend on the contributions of our esteemed writers/readers. We do it because we believe our perspective matters – because it might well be your perspective, too... Fund our efforts and together we can keep the world informed about the real Sikh Sikhi Sikhism. If everyone who writes or reads our content, who likes it, helps us to pay for it, our future would be much more secure. Every Contribution Matters, Contribute Generously!

    Become a Supporter      ::     Make a Contribution     



Share This Page