Please Help! Command Button not working!

A

A. Smart

I have a button on a form that when clicked opens a hyperlink that is
attached to a specific record. The code implies that:
If a record doesn't have a hyperlink display a message saying so!
If it does have a hyperlink open it.

I swear it used to work fine!!! Your help would be muchly appreciated! Heres
the code.

If (Nz(Me.Work_Instruction.Value, "") = "") Then
MsgBox "This Job has no Work Instruction.", vbInformation +
vbOKOnly, _
"No Work Instruction"
Else
Me.ViewWI.HyperlinkAddress = "\\AshleyS\Trim Line\" & _
Me.Work_Station & "\" & Me.Work_Instruction
End If

Exit Sub
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Top