Can I display just the HyperlinkPart acDisplaytext of a email in a Label report? The report is based on a query. I need to eliminate the mailto:
Not sure what your after exactly but<br>If it is a text item such as "Mail To:<A HREF="mailto:somebody@somewhere.com">somebody@somewhere.com</A>" and you wan to eliminate the first few characters<br><br>Then use the Mid statement, and here is a little function to do that.<br>---------------------------------------------<br>Public Function GetJustEmail(WholeEmail)<br> Dim x As Integer, WholeEmail, Email As String<br> 'WholeEmail = "Mail To:<A HREF="mailto:somebody@somewhere.com">somebody@somewhere.com</A>"<br> x = Len("Mail To:" '<<<<<<<< Put the mail to exact charaters to eliminte here<br> GetJustEmail = Mid(WholeEmail, x + 1, Len(WholeEmail) - x)<br><br>End Function<br>---------------------------------------------<br><br>Call it like this<br>x = GetJustEmail("Mail To:<A HREF="mailto:somebody@somewhere.com">somebody@somewhere.com</A>"<br>the value of X will be "<A HREF="mailto:somebody@somewhere.com">somebody@somewhere.com</A>"<br><br>OK <p>DougP<br><a href=mailto: dposton@universal1.com> dposton@universal1.com</a><br><a href= > </a><br> Ask me how Bar-codes can help you be more productive.
This site uses cookies to help personalise content, tailor your experience and to keep you logged in if you register.
By continuing to use this site, you are consenting to our use of cookies.