• We’re currently investigating an issue related to the forum theme and styling that is impacting page layout and visual formatting. The problem has been identified, and we are actively working on a resolution. There is no impact to user data or functionality, this is strictly a front-end display issue. We’ll post an update once the fix has been deployed. Thanks for your patience while we get this sorted.

Now I have an Access Question

Knorr

Junior Member
I am trying to automaticly create a hyperlink to a file on a network drive. This is what I have (which only wants to update the display text of the hyperlink)

In a form, on the key field, I have code attached to 'On lost focus' linkpic is the field where I want the hyperlink to reside (it is classified as a hyperlink in table and 'ishyperlink' is set to yes in form control)

Private Sub PURCHASE_LostFocus()
Me!linkpic = gethyper(PURCHASE)
End Sub

And a function:
Function gethyper(po_no As String) As String
Dim directory As String
directory = "H:\license"
Dim extension As String
extension = "gif"
gethyper = directory & "\" & po_no & "." & extension
End Function

I am sure I am missing something very easy here, but my head is bruised from banging it on the desk.

Any help is appreciated.

 
Back
Top