Results 1 to 3 of 3
  1. #1
    d1dodo is offline Novice
    Windows 10 Access 2003
    Join Date
    Apr 2018
    Posts
    6

    Question help


    hi there i need to search at field in table that field content a value like this ( 1,50,,30,,,,40) so i want to find the number which is after like comma number 4
    so any idea to this i want to make a function that can find that value i want

  2. #2
    June7's Avatar
    June7 is online now VIP
    Windows 10 Access 2010 32bit
    Join Date
    May 2011
    Location
    The Great Land
    Posts
    49,601
    This is CSV string in text field? There will always be 7 commas? This is really bad data schema.

    I expect this will require VBA custom function using array object.
    How to attach file: http://www.accessforums.net/showthread.php?t=70301 To provide db: copy, remove confidential data, run compact & repair, zip w/Windows Compression.

  3. #3
    Ajax is online now VIP
    Windows 10 Access 2010 32bit
    Join Date
    Mar 2015
    Posts
    8,355
    your requirement is not very clear - I presume this field is not a multi value field which can present like you describe?

    you've shown a brief example of the data but only described the result required - which in this example it would appear to be you want '0'.

    what about if you are looking for values after '1' - in your example presumably you would not want anything returned?
    and what if the string contains 41,42,43 - what value do you want returned?

    Or do you mean you are looking for records that contain numbers starting with 4?

Please reply to this thread with any new information or opinions.

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •  
Other Forums: Microsoft Office Forums - Senior Forums