+ Reply to Thread
Results 1 to 3 of 3

How to count a text string in column in access?

  1. #1
    Valued Forum Contributor ImranBhatti's Avatar
    Join Date
    03-27-2014
    Location
    Rawalpindi,Pakistan
    MS-Off Ver
    Office 365
    Posts
    1,784

    How to count a text string in column in access?

    Greetings to all Access experts

    I have a field name "Voucher Type" that may contain
    1) CPV
    2)CRV
    3)BPV
    4)BRV
    5)JrV
    Now if the voucher type has CPV then my current voucher number field should count the previous occurences of CPV in voucher type column field and return "CPV" occurances and add 1 to it so that I may get the next voucher number dynamically for diffirent voucher types. I hope I am understood. If not I will further explain

    Best Regards
    Imran Bhatti
    Teach me Excel VBA

  2. #2
    Forum Moderator alansidman's Avatar
    Join Date
    02-02-2010
    Location
    Steamboat Springs, CO
    MS-Off Ver
    MS Office 365 Version 2404 Win 11 Home 64 Bit
    Posts
    23,859

    Re: How to count a text string in column in access?

    This should get you on the right trail.

    http://www.access-programmers.co.uk/...tial+numbering
    Alan עַם יִשְׂרָאֵל חַי


    Change an Ugly Report with Power Query
    Database Normalization
    Complete Guide to Power Query
    Man's Mind Stretched to New Dimensions Never Returns to Its Original Form

  3. #3
    Registered User
    Join Date
    01-03-2014
    Location
    pakistan
    MS-Off Ver
    Excel 2003
    Posts
    10

    Re: How to count a text string in column in access?

    That is fantastic exactly what im after - i now have to apply this to
    some sort of keyword search. ie. to find the records that contain the
    greatest number of instances of a certain set of keywords.

    i should be able to adapt this - thank-you

+ Reply to Thread

Thread Information

Users Browsing this Thread

There are currently 1 users browsing this thread. (0 members and 1 guests)

Similar Threads

  1. [SOLVED] Need to count numbers in a column and return it as a text string
    By Meggo12 in forum Excel Formulas & Functions
    Replies: 6
    Last Post: 09-14-2016, 01:30 PM
  2. Replies: 2
    Last Post: 05-27-2016, 12:30 AM
  3. Replies: 5
    Last Post: 12-14-2014, 10:59 PM
  4. [SOLVED] Use Countif and ?? to count occurrences of text string in a column
    By CWatsonJr in forum Excel Formulas & Functions
    Replies: 2
    Last Post: 04-23-2014, 03:08 PM
  5. Replies: 2
    Last Post: 10-10-2013, 11:09 AM
  6. Retrieving String from Access Column
    By nrage21 in forum Access Programming / VBA / Macros
    Replies: 1
    Last Post: 11-09-2011, 01:10 PM
  7. Replies: 9
    Last Post: 10-17-2011, 04:33 PM

Bookmarks

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts

Search Engine Friendly URLs by vBSEO 3.6.0 RC 1