frosty7700
Programmer
I keep getting an "Invalid procedure call or argument: 'Left'" message when I run the following code:
company = replace(company,"'","''"
x = instr(company,"-"
- 1
company = Left(company,x)
What's weird is when I remove the "- 1" from line 2, for example if I use "+ 1" or nothing at all, it works fine. I have verified that dashloc IS getting a numeric value regardless, so I'm really stumped...it's as if the LEFT function has just decided to take on an aversion to subtraction. Note that I have also tried:
company = replace(company,"'","''"
company = Left(company,instr(company,"-"
- 1)
company = replace(company,"'","''"
x = instr(company,"-"
company = Left(company,x)
What's weird is when I remove the "- 1" from line 2, for example if I use "+ 1" or nothing at all, it works fine. I have verified that dashloc IS getting a numeric value regardless, so I'm really stumped...it's as if the LEFT function has just decided to take on an aversion to subtraction. Note that I have also tried:
company = replace(company,"'","''"
company = Left(company,instr(company,"-"