(USD 65.00)
and it is returning a zero. I'm trying to find the first occurance of a
space, however it seems what appears to be a space really isn't. When I edit
the field to delete the "space" and re-enter it, it returns the correct
position 5. I have tried InStr([NET_SALES]," ") as well with no luck.
(USD 65.00)
I'm trying to find the first occurance of a space, and then replace the 3
characters prior to the space with a zero length string. Obviously the
trouble I'm having is finding the space!
(USD 65.00)
It seems when I import the data into an Access table, this "nbsp" designator
isn't being interpreted as a " " (space), but it certainly appears in the
table to look like a space.
For the sample you show (where you think the space is in the fifth
position), what's returned by Asc(Mid([MyVariable], 5, 1))? If it's anything
other than 32, then it's not a space. Fortunately, once you know what the
character is, you'll be able to search for it. Let's assume that the
expression above returned 142. You'd then be able to use
InStr(Trim([NET_SALES]),Chr(142))
--
Doug Steele, Microsoft Access MVP
http://I.Am/DougSteele
(no private e-mails, please)
"Kirk P." <Ki...@discussions.microsoft.com> wrote in message
news:20E79768-165F-4A96...@microsoft.com...
A space will result in 32 as the output. If you get some other value then
it is not a space.
--
Build a little, test a little.
InStr(1,Trim([NET_SALES]),Chr(160))
but this doesn't
InStr(1,Trim([NET_SALES])," ")