G
Gilbert Noetzel
Guys & Gals
Apparently my previous message is either being ignore or not being
considered worthy of anyone challenge in this forum:
Below is the data in the field CHRDES
CHRDES = " - Comp. Fee"
CHRDES = " - Finance Fee"
CHRDES = " Auto Miles"
CHRDES = "Accounts Receivables"
With the above data in the fields CHRDES there are three things I need
to remove, the "blank,blank,hypen,blank", "blank,hyphen,blank' and "blank"
Here is the script I tought would work:
IIf(Left([CHCHDS],4)=" - ",Right([CHCHDS],26),[CHCHDS]) or
IIf(Left([CHCHDS],3)=" - ",Right([CHCHDS],27),[CHCHDS]) or
IIf(Left([CHCHDS],1)=" ",Right([CHCHDS],29),[CHCHDS])
But I am getting the result -1 and not the intended result.
End result would be the following: (removing the left most blanks and
hyphens)
"Comp. Fee"
"Finance Fee"
"Auto Miles"
.....
Can anyone see where I am I am doing wrong...
Gil
Apparently my previous message is either being ignore or not being
considered worthy of anyone challenge in this forum:
Below is the data in the field CHRDES
CHRDES = " - Comp. Fee"
CHRDES = " - Finance Fee"
CHRDES = " Auto Miles"
CHRDES = "Accounts Receivables"
With the above data in the fields CHRDES there are three things I need
to remove, the "blank,blank,hypen,blank", "blank,hyphen,blank' and "blank"
Here is the script I tought would work:
IIf(Left([CHCHDS],4)=" - ",Right([CHCHDS],26),[CHCHDS]) or
IIf(Left([CHCHDS],3)=" - ",Right([CHCHDS],27),[CHCHDS]) or
IIf(Left([CHCHDS],1)=" ",Right([CHCHDS],29),[CHCHDS])
But I am getting the result -1 and not the intended result.
End result would be the following: (removing the left most blanks and
hyphens)
"Comp. Fee"
"Finance Fee"
"Auto Miles"
.....
Can anyone see where I am I am doing wrong...
Gil