Hi all
I want to analyse a column of a query with the following function:
@Error: Mid([tbl_Data]![Column1],InStrRev([tbl_Data]![Column1],"@"),1000)
I need to return the text string on the right of the "@".
Not every raw contains an "@" which results in an error "#Error".
I tried to fix this with the following in order to get no error if there is no "@"...
@Error: IIf(IsError(Mid([tbl_Data]![Column1],InStrRev([tbl_Data]![Column1],"@"),1000))=True,"",Mid([tbl_Data]![Column1],InStrRev([tbl_Data]![Column1],"@"),1000))
Unfortunately, it doesn't work. Anybody got an idea?
Thanks for your help!
I want to analyse a column of a query with the following function:
@Error: Mid([tbl_Data]![Column1],InStrRev([tbl_Data]![Column1],"@"),1000)
I need to return the text string on the right of the "@".
Not every raw contains an "@" which results in an error "#Error".
I tried to fix this with the following in order to get no error if there is no "@"...
@Error: IIf(IsError(Mid([tbl_Data]![Column1],InStrRev([tbl_Data]![Column1],"@"),1000))=True,"",Mid([tbl_Data]![Column1],InStrRev([tbl_Data]![Column1],"@"),1000))
Unfortunately, it doesn't work. Anybody got an idea?
Thanks for your help!
Last edited: