• Find asterisk (2000/XP)

    Author
    Topic
    #457631

    I have some text (in multiple fields) that contains a leading asterisk( *).
    I’m trying to write a function I can use in an update query.

    How do I check for the asterisk rather than vba assuming I’m using it as a wild card.

    The data (which is messy) was imported as fixed width, with all fields as text (due to characters such as * and 3 dashes to indicate no data).

    This means I have lots of spaces I need to trim off. Before I can us trim I need to get rid of the *’s

    Viewing 1 reply thread
    Author
    Replies
    • #1148009

      To search for an asterisk as a character, use [*] in the Find what box. Similarly, to search for a question mark, use [?]

    • #1148072

      You can use the InStr() function to look for the character. A value >0 indicates it is in string.

      • #1148127

        Thankyou.

        I’d managed to find in Excel you use a ~ but couldn’t find what to do in Access. Quite surprised I’ve never needed to do this before.

    Viewing 1 reply thread
    Reply To: Find asterisk (2000/XP)

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

    Your information: