Public Function YourFunction (ByRef frm as form,TextBoxValue as string)
but better to give some more info about your function
Function ShowLink(thisLink as string) as string
ShowLink= = Mid(thisLink , iBackslash + 1, (Len(thislink) - iBackslash))
End function
Then on the control you want to use itme.thiscontrol = showlink(thisLink )
frm.controls(thiscontrol.name)
Open in new window
You call it like this
Open in new window