Kirk said:
Is there a function to remove spaces within a text field?
-----BEGIN PGP SIGNED MESSAGE-----
Hash: SHA1
There isn't a built-in one. Try this:
Function NoSpaces(ByVal s As String) As String
Const WHITESPACE = " "
s = Trim$(s)
Dim p As Long
p = InStr(s, WHITESPACE)
Do While p > 0
s = Left$(s, p - 1) & Mid$(s, p + 1)
p = InStr(p, s, WHITESPACE)
Loop
NoSpaces = s
End Function
--
MGFoster:::mgf00 <at> earthlink <decimal-point> net
Oakland, CA (USA)
-----BEGIN PGP SIGNATURE-----
Version: PGP for Personal Privacy 5.0
Charset: noconv
iQA/AwUBQiYmQYechKqOuFEgEQK2fwCgom0kccXof542/iDl4WUxG1inl/gAoNFz
zok80z7tPp2+Ero3V5l3Dr4r
=IxoP
-----END PGP SIGNATURE-----