Welcome to SPN

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

Sign Up Now!

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!
     

Share This Page