简体   繁体   English

MS Access中的链接表需要一个超链接列

[英]Linked table in MS Access needs a hyperlink column

I've recently moved a table from MS Access 2003 into SQL Server 2005. Then in the Access DB I created a linked table back to the table in SQL Server to replace the original table. 我最近将一个表从MS Access 2003移动到SQL Server 2005.然后在Access DB中,我创建了一个链接表回到SQL Server中的表来替换原始表。

So far everything is working great. 到目前为止一切都很好。 With one exception. 有一个例外。 Several of the columns had a datatype of hyperlink in Access but now are VARCHAR(MAX). 有些列在Access中具有超链接的数据类型,但现在是VARCHAR(MAX)。 From what I can tell from research on-line there is no way to change one of the columns in a linked table back to a hyperlink. 从我在线研究中可以看出,无法将链接表中的一列更改回超链接。

So what I am asking is 1) Does anyone know better? 所以我要问的是1)有谁知道更好吗? Can a column in the linked table be changed back to a hyperlink? 链接表中的列是否可以更改回超链接? or 2) Does anyone know of a good workaround? 或2)有没有人知道一个好的解决方法? The user's application seems to require the hyperlink datatype to work correctly. 用户的应用程序似乎需要超链接数据类型才能正常工作。

As a workaround, store your link in the SQL Server text field with the format "display text#URL#" , eg. 作为解决方法,将链接存储在SQL Server文本字段中,格式为“display text#URL#” ,例如。 ... ...

Stack Overflow#https://stackoverflow.com/#

Then use a form with a text box bound to that text field and set the text box's Is Hyperlink property to Yes . 然后使用带有绑定到该文本字段的文本框的表单,并将文本框的Is Hyperlink属性设置为Yes

That's probably not what you had in mind. 这可能不是你想到的。 But since SQL Server doesn't offer a counterpart to Access' hyperlink data type, this is the best workaround I've found. 但由于SQL Server没有提供Access'超链接数据类型的对应物,这是我发现的最佳解决方法。

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

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