jimday1982
Registered User.
- Local time
- Today, 18:30
- Joined
- May 13, 2004
- Messages
- 81
I'm using a bunch of different functions to strip out certain data in my field "wwe-caption". The expression I'm using is:
IIf(InStr([M].[wwe-caption],"<b>Order")<>0,Left([M].[wwe-caption],Len(Left([M].[wwe-caption],InStr([M].[wwe-caption],"<b>Order")))-1),IIf(InStr([M].[wwe-caption],"<font color=")<>0,Left([M].[wwe-caption],InStr([M].[wwe-caption],"<font color=")-1),[M].[wwe-caption]))
That strips out anything in the field that begins with "<b>Order" or "<font color=". The problem is now I need to strip out data that begins with "<b>Delivery:". I added more code to do so at the end of that expression, but it didn't work because I think it was dropping out of one of the previous iif statements. This expression is at a point where I can't really understand it anymore, so if anyone has any ideas, I'd greatly appreciate it.
IIf(InStr([M].[wwe-caption],"<b>Order")<>0,Left([M].[wwe-caption],Len(Left([M].[wwe-caption],InStr([M].[wwe-caption],"<b>Order")))-1),IIf(InStr([M].[wwe-caption],"<font color=")<>0,Left([M].[wwe-caption],InStr([M].[wwe-caption],"<font color=")-1),[M].[wwe-caption]))
That strips out anything in the field that begins with "<b>Order" or "<font color=". The problem is now I need to strip out data that begins with "<b>Delivery:". I added more code to do so at the end of that expression, but it didn't work because I think it was dropping out of one of the previous iif statements. This expression is at a point where I can't really understand it anymore, so if anyone has any ideas, I'd greatly appreciate it.