• Find Character in String (2000)

    Author
    Topic
    #403745

    I know I used to know how to do this but can’t remember – I want to find the position of a particular character in text in a field so I can then split the data using left(), mid etc ie I want to find where the “-” appears in “Fred Nurks-40 Gan Gan Rd”

    Viewing 1 reply thread
    Author
    Replies
    • #815719

      You can use the InStr function for this:

      InStr([NameOfField],”-“)

      will return the position of “-” in the field, or 0 if “-” does not occur.

    • #815720

      You can use the InStr function for this:

      InStr([NameOfField],”-“)

      will return the position of “-” in the field, or 0 if “-” does not occur.

    Viewing 1 reply thread
    Reply To: Find Character in String (2000)

    You can use BBCodes to format your content.
    Your account can't use all available BBCodes, they will be stripped before saving.

    Your information: