Editing hyperlinks in rich text fields (1 Viewer)

Dreamweaver

Well-known member
Local time
Today, 21:38
Joined
Nov 28, 2005
Messages
2,466
I have a newsletter feature on my site but its limited so what I'm doing is creating the newsletter In a db with a mixture of rich text and plain fields my problem is when I past a hyperlink in I'm not able to edit it unless I view the field as plain text.

Does anybody know a way without code to edit the links

Thanks mics
 

strive4peace

AWF VIP
Local time
Today, 15:38
Joined
Apr 3, 2020
Messages
1,004
hi MickJav ,

right-click on it and choose Edit Hyperlink? Oh! I just tried that and it doesn't work! let me do some exploring ...
 

Cronk

Registered User.
Local time
Tomorrow, 06:38
Joined
Jul 4, 2013
Messages
2,772
Store the hyperlinks in a hyperlink field. The hyperlinks can be edited in a form.
 

strive4peace

AWF VIP
Local time
Today, 15:38
Joined
Apr 3, 2020
Messages
1,004
how about selecting it and pasting a different link? that does work

I love using the QAT and looked for an Edit Hyperlink command, but there isn't one -- seems there should be
 

strive4peace

AWF VIP
Local time
Today, 15:38
Joined
Apr 3, 2020
Messages
1,004
I've spent some time searching and experimenting but sadly, without using VBA, I've found no built-in way!
 

Dreamweaver

Well-known member
Local time
Today, 21:38
Joined
Nov 28, 2005
Messages
2,466
Thanks I had the same result again Microsoft only half designed a feature lol
 

strive4peace

AWF VIP
Local time
Today, 15:38
Joined
Apr 3, 2020
Messages
1,004
hi MickJav ,

you're welcome

Daniel Pineault has a blog article on using another editor ... but you'll need some VBA. It is here if you want to look:

 

Dreamweaver

Well-known member
Local time
Today, 21:38
Joined
Nov 28, 2005
Messages
2,466
I have found a way I'm creating a switch which seems to work

Code:
If Me.Txt_NewsDetails.TextFormat = acTextFormatPlain Then
    Me.Txt_NewsDetails.TextFormat = acTextFormatHTMLRichText
Else
    Me.Txt_NewsDetails.TextFormat = acTextFormatPlain
End If
 

Dreamweaver

Well-known member
Local time
Today, 21:38
Joined
Nov 28, 2005
Messages
2,466
The final bit selects the field and sets curser to beginning as long as there is text added

Code:
Me![Txt_NewsDetails].SetFocus
If Me![Txt_NewsDetails].SelLength > 0 Then Me![Txt_NewsDetails].SelStart = 0
 

Dreamweaver

Well-known member
Local time
Today, 21:38
Joined
Nov 28, 2005
Messages
2,466
I've notice when giving a link a name it no longer sees it as a link
 

Dreamweaver

Well-known member
Local time
Today, 21:38
Joined
Nov 28, 2005
Messages
2,466
Just sent first one when I'm finished with the tool I'll post it on my site and as always link back here
 

Dreamweaver

Well-known member
Local time
Today, 21:38
Joined
Nov 28, 2005
Messages
2,466
Completed my tool which works a treat couldn't quite get it working the way I wanted but works just as well.

This uses my find and replace tool but adapted for this which gets me around creating links with rich text it sends the results to a plain text field after compling each newsletter is stored in both rich text and plain that the way I wanted but can be changed with a bit of work.

https://databasedreams.createaforum.com/free-samples-and-small-projects/newsletter-242/

As Always any problems It wasn't me :cool:
 

strive4peace

AWF VIP
Local time
Today, 15:38
Joined
Apr 3, 2020
Messages
1,004
hi Mick,

wow, thank you! The description I have in my signature is fine, if you don't mind adding it.
 

Users who are viewing this thread

Top Bottom