A
AJK
Hi,
I am trying to remove all characters after a tilda sign:
original field text: 86.HCGS.100794..GTEW~MPVERC
desired field text: 86.HCGS.100794..GTEW
I created the following module, but it does not recognize the "*" wildcard
and doesn't work, any ideas?
Option Compare Database
Function TildaReplace(sInput As String) As String
Dim s() As String, i As Long
Dim sDelim As String
sDelim = "~*| "
s = Split(sDelim, "|")
For i = LBound(s) To UBound(s)
sInput = Replace(sInput, s(i), "")
Next
TildaReplace = sInput
End Function
Thank you.
I am trying to remove all characters after a tilda sign:
original field text: 86.HCGS.100794..GTEW~MPVERC
desired field text: 86.HCGS.100794..GTEW
I created the following module, but it does not recognize the "*" wildcard
and doesn't work, any ideas?
Option Compare Database
Function TildaReplace(sInput As String) As String
Dim s() As String, i As Long
Dim sDelim As String
sDelim = "~*| "
s = Split(sDelim, "|")
For i = LBound(s) To UBound(s)
sInput = Replace(sInput, s(i), "")
Next
TildaReplace = sInput
End Function
Thank you.