简体   繁体   English

如何在 Microsoft Access 报表中动态获取超链接?

[英]How to get hyperlinks dynamically in Microsoft Access Reports?

In a MS Access Report, I am trying to create a hyperlink that would take a user webpage.在 MS Access 报告中,我正在尝试创建一个可以访问用户网页的超链接。 The URL is dependent on a data field in my database. URL 取决于我数据库中的数据字段。

In my report, I have added the hyperlink control and used the popup to enter the hyperlink.在我的报告中,我添加了超链接控件并使用弹出窗口输入超链接。

When I use the Hyperlink Builder, to dynamically set the value of one of the parameters, I get a garbage url that does not work.当我使用 Hyperlink Builder 动态设置参数之一的值时,我得到一个无效的垃圾 url。 The URL that is returned is:返回的 URL 是:

file:///C|/Users/gh/Dropbox%20(Bar01%20College)/BW%20Demo%20Project/="https://baruch.az1.qualtrics.com/jfe/form/SV_8uZm3rAnSWPE9gN?DocumentID=" & [documentID] & "&TransmittedScore=ENG_2100" file:///C|/Users/gh/Dropbox%20(Bar01%20College)/BW%20Demo%20Project/="https://baruch.az1.qualtrics.com/jfe/form/SV_8uZm3rAnSWPE9gN?DocumentID=" & [documentID] & "&TransmittedScore=ENG_2100"

MS Access 编辑超链接弹出窗口,具有不起作用的动态值的超链接

The expected result would be to have the URL that is customized based on the record where my parameter DocumentID would be equal to the value of my documentID field.预期的结果将是 URL 根据我的参数 DocumentID 将等于我的 documentID 字段值的记录进行定制。

https://baruch.az1.qualtrics.com/jfe/form/SV_8uZm3rAnSWPE9gN?DocumentID=ZuluTest&TransmittedScore=ENG_2100 https://baruch.az1.qualtrics.com/jfe/form/SV_8uZm3rAnSWPE9gN?DocumentID=ZuluTest&TransmittedScore=ENG_2100

If I paste the expected URL into the address field, the URL parses properly:如果我将预期的 URL 粘贴到地址字段中,则 URL 会正确解析: MS Access 编辑超链接弹出窗口,具有静态值的超链接确实有效

The requirement of this project is that the links need to be clickable when exported to PDF.本项目的要求是导出到PDF时链接需要是可点击的。

Note: I have previously posted this question to https://www.utteraccess.com/forum/index.php?showtopic=2057701 and looking for additional assistance.注意:我之前已将此问题发布到https://www.utteraccess.com/forum/index.php?showtopic=2057701并寻求更多帮助。

Working with TheDBGuy on the UtterAccess forum (URL in my original question).在 UtterAccess 论坛上与TheDBGuy合作(我的原始问题中的 URL)。 The solution that came up was to use an UNBOUND Text Box, setting the property of Is Hyperlink = Yes .提出的解决方案是使用 UNBOUND 文本框,设置Is Hyperlink = Yes的属性。 Then in the ControlSource property, built the URL string in the format of ="<DISPLAY TEXT>#URL"然后在 ControlSource 属性中,以="<DISPLAY TEXT>#URL"的格式构建 URL 字符串

So the value would have been:所以价值应该是:

="ENG 2100#https://baruch.az1.qualtrics.com/jfe/form/SV_8uZm3rAnSWPE9gN?DocumentID="& [documentID] & "&TransmittedScore=ENG_2100"

声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM