简体   繁体   English

如何通过sql将超链接插入到access数据库中?

[英]How to insert hyperlink into access database via sql?

I have a fairly simple MS Access Database that contains some metadata about a bunch of documents and a hyperlink field that links to the document on our network drive.我有一个相当简单的 MS Access 数据库,其中包含一些关于一堆文档的元数据和一个链接到我们网络驱动器上文档的超链接字段。

However, when I use a SQL INSERT statement to populate the hyperlink field, the value I give it only becomes the display text, not the actual link.但是,当我使用 SQL INSERT 语句填充超链接字段时,我给它的值只会变成显示文本,而不是实际链接。

How can I make the value a functional hyperlink?如何使值成为功能性超链接? I'd think that the hyperlink data type would actually create hyperlinks.我认为超链接数据类型实际上会创建超链接。

I'm using Access 2002 SP3.我正在使用 Access 2002 SP3。

I do not like hyperlink fields they are inconvenient and difficult to edit.我不喜欢超链接字段,它们不方便且难以编辑。 It is much easier to use a text or memo field and use followhyperlink in the code for your form.使用文本或备注字段并在表单代码中使用 followhyperlink 要容易得多。 That being said, the format for a hyperlink is:话虽如此,超链接的格式是:

DisplayPart#hyperlinkpart#

So所以

StackOverflow#http://stackoverflow.com#

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

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