Hi, I can't work this out, as it seems to work in the vba immediate window
but not in a query.
The following gives an invalid procedure call error:
select *
from addresses
where
address4 = left(address5,i nstr(address5," ,")-1)
but if I change the last line to just
address4 = left(address5,5 )
it works as I'd expect, but I of course want the functionality of using the
instr method (which I've used before and got working...)
Any ideas?
Cheers,
Chris
but not in a query.
The following gives an invalid procedure call error:
select *
from addresses
where
address4 = left(address5,i nstr(address5," ,")-1)
but if I change the last line to just
address4 = left(address5,5 )
it works as I'd expect, but I of course want the functionality of using the
instr method (which I've used before and got working...)
Any ideas?
Cheers,
Chris
Comment