AccessGuruCarl
Programmer
Hello,
Can someone tell me why this code isn't working.
Dim x, y
Dim strSpace As String
strSpace = Chr(32)
x = " Ballston Lake, New York 12019"
x = Trim(x)
y = InStrRev(x, strSpace)
Should return 5, but it's returning 24
If I use InStr it works fine.
Thanks...
AccessGuruCarl
Programmers helping programmers
you can't find a better site.
Can someone tell me why this code isn't working.
Dim x, y
Dim strSpace As String
strSpace = Chr(32)
x = " Ballston Lake, New York 12019"
x = Trim(x)
y = InStrRev(x, strSpace)
Should return 5, but it's returning 24
If I use InStr it works fine.
Thanks...
AccessGuruCarl
Programmers helping programmers
you can't find a better site.