开发者

hyperlink doesn’t work in Access form

I have an Access form in which I am unsuccessful in formatting the record to be in hyperlink format.

The form is in datasheet-view format, which contains records with a link to a website. The form’s datasource is a select-query. The hyperlink is created with the following expression, which concantenates text and data, in order create a web link :

"#http://www.ups.com/WebTracking/processInputRequest?sort_by=status&tracknums_displayed=1&TypeOfInquiryNumber=T&loc=en_us&InquiryNumber1=" & [T].[tracking_number] & "&track.x=0&track.y=0#"

I tried setting the property-sheet format field to “hyperlink” , but it automatically changes to “hy开发者_如何学编程"perli"n\k”, in both the query-design view, and form-design-view.

please advise what I need to do in order to have the form output the records in hyperlink format, so I can just click on the website link and it will open up in a web browser

thanks very much in advance, Nathaniel, Access 2007


You can use the IsHyperlink property for the textbox (format tab) , once again, these are a nuisance to edit. If you create a form based on a table with a hyperlink field, the control created for the hyperlink field will be set up as a link.

More on IsHyperlink: http://msdn.microsoft.com/en-us/library/aa196153(office.11).aspx

Paste something like this into the textbox to see it working:

clickme#http://www.ups.com/WebTracking/processInputRequest?sort_by=status&tracknums_displayed=1&TypeOfInquiryNumber=T&loc=en_us&InquiryNumber1=123456&track.x=0&track.y=0#
0

上一篇:

下一篇:

精彩评论

暂无评论...
验证码 换一张
取 消

最新问答

问答排行榜