Results 1 to 2 of 2
  1. #1
    BorisGomel is offline Competent Performer
    Windows Vista Access 2003
    Join Date
    Apr 2011
    Posts
    101

    Opend PDF File from access from

    Hello everybody.

    I hope you help me with my problem .I have a lot of pdf file that we save every day and name them like this 8012012,8022012, that are 2 gigits day, 2 gigits month and four digits of years no slaches. The fiels are txt fiels that we recive from banks. After processing thier data, the upper management wants me to open those pd f files form access . i have created form named frmOpenPdf, placed text box named txtName and placed also commund button named cmdOpen . I research code over internet and here is below, but it doesn' work;
    Dim avCodeFile As CAcroAVDoc


    Dim MYSRTING As String
    MYSTRING = txtName.Value
    Set Acroapp = CreateObject("AcroExch.App")
    Acroapp.Show
    Set avCodeFile = CreateObject("AcroExch.AVDoc") 'This is the code file
    avCodeFile.Open "C:\Documents and Settings\Desktop\ETFPdfFiles\MYSTRING.pdf",

    What I am doing worng here. I would like to have like this : an user types 08012012 and the code excute to opend file names 0802012 in commund button .

    Thank you in advance for help,

    The Best Reagard,

    BorisGomel

  2. #2
    pbaldy's Avatar
    pbaldy is offline Who is John Galt?
    Windows XP Access 2007
    Join Date
    Feb 2010
    Location
    Nevada, USA
    Posts
    22,642
    I've never used that method; I've used FollowHyperlink successfully many times.
    Paul (wino moderator)
    MS Access MVP 2007-2019
    www.BaldyWeb.com

Please reply to this thread with any new information or opinions.

Similar Threads

  1. cannot opend db exclusively
    By drewetzel in forum Access
    Replies: 3
    Last Post: 01-03-2012, 11:28 AM
  2. Convert access file to exe file
    By Mina Garas in forum Access
    Replies: 2
    Last Post: 12-30-2011, 10:11 AM
  3. import excel file to access 2003 yes, access 2007 no
    By stapik in forum Import/Export Data
    Replies: 9
    Last Post: 07-27-2011, 07:09 AM
  4. Can I convert a access file to exe file?
    By zhshqzyc in forum Access
    Replies: 3
    Last Post: 01-25-2011, 09:49 AM
  5. Replies: 1
    Last Post: 09-27-2010, 10:10 AM

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •  
Other Forums: Microsoft Office Forums