Part of filename from query

nightflight

Registered User.
Local time
Today, 01:43
Joined
Mar 15, 2011
Messages
24
at the moment, the OnClick event procedure for a button is

Code:
Private Sub btn_certificate_Click()
Application.FollowHyperlink "C:\<filepath>\FAWR Certificate.doc"
End Sub
There are three different certificate files, EA Certificate, FAW Certificate and FAWR Certificate
What I would like is for the "FAWR" bit to be [qry_certissued]![certtype] as [certtype] is either EA, FAW or FAWR, thus requiring only one button rather than 3.

I've tried
Code:
Private Sub btn_certificate_Click()
Application.FollowHyperlink "C:\<filepath>\[qry_certissued]![certtype] Certificate.doc"
End Sub
But get error 490, cannot find file
 
Is this what you're talking about?
Code:
Application.FollowHyperlink "C:\<filepath>[COLOR=Red]\" &[/COLOR] [certtype][COLOR=Red] & " [/COLOR]Certificate.doc"
 
That's the one, thanks
=o)
 

Users who are viewing this thread

Back
Top Bottom