Photo Gallery Member List Search Calendars FAQ Ticket List Log Out


RunApp from module & point to varied documents

 
Logged in as: Guest
arrSession:exec spGetSession 2,2,58
 Active Users: There are 0 members and 0 guests.
 Users viewing this topic: none
 

 

 
  
  Printable Version
All Forums >> [Scripting] >> WSH & Client Side VBScript >> RunApp from module & point to varied documents
  Do you like VisualBasicScript.com? Link to us and help spread the word about our forum. Thanks!
Page: [1]
Login
Message << Older Topic   Newer Topic >>
 RunApp from module & point to varied documents - 5/24/2001 1:04:37 PM   
  banker

 

Posts: 1
Score: 0
Joined: 5/24/2001
From: USA
Status: offline
With Access 97 I have been trying to open Acrobat in C: and point to a document in another folder as a event procedure on a form. The problem arises when I try to select the document from the folder based on the field. I tried something like this:
Private SubForm_Load()
strFileRoot = "C:\My Documents
"End Sub
then adding a button like this:
Private Sub Command6_click()
On Error GoTo Err_Command6_Click
FollowHyperlink strFileRoot & Me.Mypdf & ".pdf"
Exit_Command6_Click:
Exit Sub
Err_Command6_ Click:
MsgBoxErr.Description
Resume Exit_Command6_Click

End Sub
Woefully, I cannot select varied .pdfs. I can open ONE but when I try to make that selection based on the info in a field, I get messages that the event procedure is incorrect. I am NOT fluent in VBA.

Please help. I have tried Macros also with the same results. Only sucess with an individual doc, not multiple ones.
 
 
Post #: 1
 
 
 
  

If you found our site useful please link to us <a href="http://www.visualbasicscript.com">VisualBasicScript.com</a>.
All Forums >> [Scripting] >> WSH & Client Side VBScript >> RunApp from module & point to varied documents Page: [1]
Jump to:





New Messages No New Messages
Hot Topic w/ New Messages Hot Topic w/o New Messages
Locked w/ New Messages Locked w/o New Messages
 Post New Thread
 Reply to Message
 Post New Poll
 Submit Vote
 Delete My Own Post
 Delete My Own Thread
 Rate Posts