在表格中添加嵌入MS Access文本框的超链接。

问题描述 投票:0回答:1

我试图在MS Access表格中的文本框(富文本)中嵌入一个超链接。这可能吗?目前在网上还没有找到任何解决方案......

类似的东西。

Me.TextWithLink = "Text here for link <b><a href = " & URL & "> Hyperlink Text</a></b>"

PS: Textbox is set to RichText, tried to set to hyperlink truefalse but not working...

有什么解决方法吗?

vba ms-access richtextbox
1个回答
0
投票
Form_Formular1.Text0.Value = "your text http://www.google.de"

会自动产生

enter image description here

以及

Form_Formular1.Text0.Value = "your text <a href = ""http://www.google.de"">http://www.google.de</a>"

但很明显,URL和超链接文本需要相同。所以

Form_Formular1.Text0.Value = "your text <a href = """ & url & """>" & url & "</a>"
© www.soinside.com 2019 - 2024. All rights reserved.