I was trying to use this function to help in another thread earlier and ran into an interesting problem....check this data out:
SQL:
RESULT:
Should'nt the InstrRev column start counting from the END of the string back towards the beginning? I'd expect the first row to have a MyInstrRev value of 6, not 15. What gives?
~Melagan
______
"It's never too late to become what you might have been.
SQL:
Code:
SELECT tblAddresses.Address
, InStrRev([Address],"APT") AS MyInstrRev
, InStr([Address],"APT") AS MyInstr
FROM tblAddresses;
RESULT:
Code:
Address MyInstrRev MyInstr
1234 Main St. APT a1 15 15
154 G Avenue APT 1B 14 14
10 AB Street 0 0
16342 Brawley Avenue APT 203 22 22
1 John Way APT 1 12 12
Should'nt the InstrRev column start counting from the END of the string back towards the beginning? I'd expect the first row to have a MyInstrRev value of 6, not 15. What gives?
~Melagan
______
"It's never too late to become what you might have been.