Previous Thread

7/30/2006 5:27:02 AM    Opening PDF documents using a Command Button
Hi, 
 
Like Colin before me, I need to open PDF documents in a form using a command 
 
button and based on a variable ID number. I've put in the code that worked 
 
for Cloin but it's not working for me. This is it below: 
 
Dim strFileName As String 
 
strFileName = "G:\Service Contracts\Declarations\" & Me.SerialNo & ".pdf" 
 
Application.FollowHyperlink strFileSpec 
 
I think it might be because of the hyperlink section of his code which I'm 
 
not understanding correctly. If Colin or anyone else could help I'd be very 
 
very grateful! 
 
Kevin



7/30/2006 12:45:07 PM    Re: Opening PDF documents using a Command Button
Kevin wrote: 
 
You set strFileName and then attempt to open strFileSpec.  Is that your actual 
 
code or a typo in the post?  Also you do have these on separate lines right? 
 
-- 
 
Rick Brandt, Microsoft Access MVP 
 
Email (as appropriate) to... 
 
RBrandt   at   Hunter   dot   com