Solved

Access dll missing?

Posted on 2014-03-13
4
313 Views
Last Modified: 2014-03-31
Private Sub lstR_AfterUpdate()
    Dim objPdf As AcroPDF
    Set objPdf = Me.AcroPDF3.Object
    With objPdf
        RetVal = .LoadFile(DLookup("[FilePath]", "Table", "[ID] = " & Me.lstR.Value))
        .setZoom (76)
    End With
    End Sub

Open in new window


The above code works on 32 bit but crashes on 64 bit (Access Runtime), does anyone know how to fix? (It is supposed to display a pdf)
0
Comment
Question by:HKFuey
  • 2
  • 2
4 Comments
 
LVL 57
ID: 39926918
It's not going to work.  If your using the 64 bit runtime, then it expects all calls to be 64 bit.

There's no real reason to use the 64 bit version of the runtime (and office) and many reasons not to.  This is one of them.

Can you switch to the 32 bit version?  or is it a 64 bit install of Office and you can't switch it (you can't mixed 32 and 64 bit apps within Office - needs to be one or the other).

Jim.
0
 

Author Comment

by:HKFuey
ID: 39926966
Sorry for the confusion I meant is was running on a 64 bit PC with 32 bit Access Runtime.

This is the same setup as our 32 bit PC's which work OK
0
 
LVL 57

Accepted Solution

by:
Jim Dettman (Microsoft MVP/ EE MVE) earned 500 total points
ID: 39927479
OK, well then the DLL is really missing.   You need to install the acrobat software (or whatever software the DLL came from ) on the machine.

Jim.
0
 

Author Closing Comment

by:HKFuey
ID: 39965983
Thanks
0

Featured Post

Courses: Start Training Online With Pros, Today

Brush up on the basics or master the advanced techniques required to earn essential industry certifications, with Courses. Enroll in a course and start learning today. Training topics range from Android App Dev to the Xen Virtualization Platform.

Question has a verified solution.

If you are experiencing a similar issue, please ask a related question

If you need to start windows update installation remotely or as a scheduled task you will find this very helpful.
When you see single cell contains number and text, and you have to get any date out of it seems like cracking our heads.
What’s inside an Access Desktop Database. Will look at the basic interface, Navigation Pane (Database Container), Tables, Queries, Forms, Report, Macro’s, and VBA code.
In Microsoft Access, when working with VBA, learn some techniques for writing readable and easily maintained code.

813 members asked questions and received personalized solutions in the past 7 days.

Join the community of 500,000 technology professionals and ask your questions.

Join & Ask a Question

Need Help in Real-Time?

Connect with top rated Experts

17 Experts available now in Live!

Get 1:1 Help Now