Replace()
Posted by: fredometro on
Jan 1st, 2004 |
Filed under: MS-Access
Replace a string by another string in a function. The function exists in Access 2000 and next, but not in Access 97. So here it is.
Public Function Replace(strSource As String, String1 As String, String2 As String) As String
Dim iLoc As Integer
Dim NewString As String
NewString = strSource
iLoc = InStr(NewString, String1)
Do While iLoc > 0
NewString = Left$(NewString, iLoc - 1) & String2 & Mid$(NewString, iLoc + 1)
iLoc = InStr(iLoc + 2, NewString, String1)
Loop
Replace = NewString
End Function


December 11th, 2009 at 10:13 pm
Gina Beckman
December 11th, 2009 at 10:14 pm
Toon Party
December 11th, 2009 at 10:15 pm
Black On Black Creampies
December 11th, 2009 at 10:17 pm
Bella Spice
December 11th, 2009 at 10:18 pm
Cum Trainer
December 11th, 2009 at 10:19 pm
Lesbian XV
December 11th, 2009 at 10:21 pm
First Time Gay
December 11th, 2009 at 10:22 pm
Victoria Lawson
December 11th, 2009 at 10:23 pm
Cam Show Asians
December 11th, 2009 at 10:24 pm
Redhead Sluts
December 11th, 2009 at 10:25 pm
Neo Nasty
December 11th, 2009 at 10:26 pm
Black Cocks In White Box
December 11th, 2009 at 10:27 pm
Hailey Hardcore
December 11th, 2009 at 10:28 pm
Real Black Lesbians
January 10th, 2010 at 8:51 pm
????? ?????, ????? ???????? ???? ?????????.
January 10th, 2010 at 8:51 pm
????? ?????, ????? ???????? ???? ?????????.
Add A Comment
You must be logged in to post a comment.