It sounds as if your e-mail address is stored in an Access hyperlink field.
If so,
a. does it need to be? Can you change it to be a text field? Or add a text
field that just contains the address?
b. you can always create a queryin Access to strip off everything after the
"#"
Peter Jamieson
>I am trying to mailmerge a Word document with data from an Access database.
> All imports OK except e-mail (and web) addresses.
[quoted text clipped - 5 lines]
> not recognise the e-mail address.
> How do I remove the # marks and the address between them?
Thanks for your reply.
I have checked the Access database field properties for the e-mail address
and it is not marked as a hyperlink.
The e-mail address displays OK in Access, it is only when it is imported
into Word (or Excel) that the #http//:(address)# gets added after the address.
Andrew R
> It sounds as if your e-mail address is stored in an Access hyperlink field.
> If so,
[quoted text clipped - 14 lines]
> > not recognise the e-mail address.
> > How do I remove the # marks and the address between them?
Peter Jamieson - 12 Sep 2006 18:57 GMT
The thing is that the format you describe is exactly what you do get if you
try to merge a hyperlink field (and notice that you see http: rather than
mailto: despite the fact that it is an email address).
So I'm wondering if there is some other way you can end up with a hyperlink
encoded in this way in a non-hyperlink field.
My guess is still that if you create a query that looks for and discards
everything from the first # and use it as the data source, it will probably
work.
e.g. try a query such as
SELECT *, left(myfield & '#', instr(myfield & '#','#')-1) AS [myaddress]
FROM mytable
where "myfield" is the field containing the e-mail address.
Peter Jamieson
Meanwhile, if you try creating a query that selects the length of your
e-mail address fieldyour e-mail address field
> Thanks for your reply.
>
[quoted text clipped - 29 lines]
>> > not recognise the e-mail address.
>> > How do I remove the # marks and the address between them?
Peter Jamieson - 12 Sep 2006 20:29 GMT
You were looking at the list of fields in the table design? Not just the
field properties in a form?
Just checking...
Peter Jamieson
> Thanks for your reply.
>
[quoted text clipped - 29 lines]
>> > not recognise the e-mail address.
>> > How do I remove the # marks and the address between them?