• Hyperlinks/Email addresses (97)

    Author
    Topic
    #382847

    I have a table with a hyperlink field with the client’s email address. Because my client is using Lotus Notes and not Outlook (ugh), I have to prefix each address with mailto: if I want the hyperlink to open Lotus Notes. Currently I am storing the mailto: as part of the field. I want to have a query that lists name and email address without the mailto: listed, but with a comma after each name. I guess they want to export this to their To: field in Lotus Notes.

    Any suggestions.

    Viewing 0 reply threads
    Author
    Replies
    • #650436

      If mailto: is always at the beginning of the field you can use the mid function in an expression in a calculated field in a query to isolate the name. Then just concatenate a comma. Something like

      Mail To: Mid([hlinkfield],8) & “,”

      Make it 9 if there is a space between mailto: and the name.

      • #651818

        when I try this, I get the # sign between the address and the , . For example:

        EmailAddress: Mid(,9)& “,” = [email]peachent@aol.com#,

        any hints?

        • #651835

          I would change it to :

          EmailAddress: Left(,9) & “,” Where does peachent@aol.com[/b] come from?

          Pat cheers

          • #652068

            Sorry for the confusion – I was typing in…..
            EmailAddress: Mid(,9)& “,” and for the record that read mailto:peachent@aol.com the result was [email]peachent@aol.com#,

            I don’t want the # sign!!!

            • #652070

              Can you verify that the record read mailto:peachent@aol.com ?
              What is the length of the field where the email address is? Is it 23 ( I think I counted right) or 24?
              Pat

            • #652073

              I thought I would do a little further investigation, and I have found that when you view the table’s HyperLink field you don’t see the leading (yes there is a leading #) or trailing # sign. I read a HyperLink field from the table into a variant field and saw these 2 characters.
              Your expression should probably be :
              Mid(,9,Len()-10)
              Pat smile

            • #652971

              How are you going with this problem, just interested.
              Pat smile

            • #653240

              the last suggestion worked, except I had to make it -9 instead of -10.
              What does the -10 at the end of the string mean?
              Thanks for help!

            • #653324

              The mid instruction is
              Mid([Email],start,length)
              Where:
              start is where you want to begin taking data
              length is how long a string you need to take

              Suppose you string looked like
              #mailto:thornp.iprimus.com.au#

              The start is 9 which is the t of thornp
              The length is 30 characters but we only want 30-9 characters, the 9 characters are the #mailto: and the trailing #.

              Hope this makes it clear, hmmn…
              Pat smile

    Viewing 0 reply threads
    Reply To: Hyperlinks/Email addresses (97)

    You can use BBCodes to format your content.
    Your account can't use all available BBCodes, they will be stripped before saving.

    Your information: