C
Carol G
I am exporting a record from Access to Outlook.
My email fields are hyperlink type in Access. I am transfering only the
display as section of the hyperlink info to Outlook. All works fine unless
the email address is empty.
I have tried using:
Nz(Mid(strEMailAddress2, 1, inStr(1, strEMailAddress2, "#") - 1))
but I get error message. Error Number 5 Invalid procedure or argument. I'm
thinking that I don't fully understand the Nz Function.
I tried assigning the inStr Function to an int variable. If the string is
empty it returns -1.
The following works great if there is an actual email address in the record.
..Email2Address = Mid(strEMailAddress2, 1, inStr(1, strEMailAddress2, "#") -
1)
Thanks for the help.
Carol
My email fields are hyperlink type in Access. I am transfering only the
display as section of the hyperlink info to Outlook. All works fine unless
the email address is empty.
I have tried using:
Nz(Mid(strEMailAddress2, 1, inStr(1, strEMailAddress2, "#") - 1))
but I get error message. Error Number 5 Invalid procedure or argument. I'm
thinking that I don't fully understand the Nz Function.
I tried assigning the inStr Function to an int variable. If the string is
empty it returns -1.
The following works great if there is an actual email address in the record.
..Email2Address = Mid(strEMailAddress2, 1, inStr(1, strEMailAddress2, "#") -
1)
Thanks for the help.
Carol