B
BruceS
Hi, all. If this ends up appearing twice, I apologize. I got a "too busy"
error on the first attempt.
I'm running Access 2003 SP 3.
For the first time I can remember, I am trying to use the Replace function
with the "Start" parameter. Even when including all of the parameters
(Thanks, Doug!) it acts like it has the Mid fuction built in. Here is an
example copied out of my Immediate window:
mystr = "abc..def..ghijk"
? replace(mystr,"..","....",8,1,vbTextCompare)
f....ghijk
I was assuming that the output would be "abc..def....ghijk".
VBA help for Replace does not mention this "feature". Here is what it says
about "Start": "Optional. Position within expression where substring search
is to begin. If omitted, 1 is assumed."
I've tried it with "Count" set to both 1 and -1. Same results.
Is this behavior normal, or have the bit gremlins struck?
Thanks,
Bruce
error on the first attempt.
I'm running Access 2003 SP 3.
For the first time I can remember, I am trying to use the Replace function
with the "Start" parameter. Even when including all of the parameters
(Thanks, Doug!) it acts like it has the Mid fuction built in. Here is an
example copied out of my Immediate window:
mystr = "abc..def..ghijk"
? replace(mystr,"..","....",8,1,vbTextCompare)
f....ghijk
I was assuming that the output would be "abc..def....ghijk".
VBA help for Replace does not mention this "feature". Here is what it says
about "Start": "Optional. Position within expression where substring search
is to begin. If omitted, 1 is assumed."
I've tried it with "Count" set to both 1 and -1. Same results.
Is this behavior normal, or have the bit gremlins struck?
Thanks,
Bruce