How to extract a string that appears before the character #

Solved
traderpierre Posted messages 316 Status Member -  
traderpierre Posted messages 316 Status Member -
Hello,
In Access, I want to extract characters from a hyperlink field that are located before the character #

After trying functions and syntax specific to Excel, which are rejected

I tried:
Left([Product];""#")
It returns an error
Then: Left([Product];#)
And there I get an alert box
"The entered date type expression value is not valid".

What should I do????
Thank you in advance for your help.

1 answer

  1. traderpierre Posted messages 316 Status Member 7
     
    Finally, I found this solution that works wonderfully:

    Extracting a string before a specific character, here #:
    = Left([Product];Length([Product])-Length(ExtractString$([Product];InString([Product];""#"))))

    Extracting a string after a specific character, here #:
    = Right([Product];Length(ExtractString$([Product];InString([Product];""#")))-1)
    0