?
Solved

Access dll missing?

Posted on 2014-03-13
4
Medium Priority
?
328 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
[X]
Welcome to Experts Exchange

Add your voice to the tech community where 5M+ people just like you are talking about what matters.

  • Help others & share knowledge
  • Earn cash & points
  • Learn & ask questions
  • 2
  • 2
4 Comments
 
LVL 58
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 58

Accepted Solution

by:
Jim Dettman (Microsoft MVP/ EE MVE) earned 1500 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

Industry Leaders: We Want Your Opinion!

We value your feedback.

Take our survey and automatically be enter to win anyone of the following:
Yeti Cooler, Amazon eGift Card, and Movie eGift Card!

Question has a verified solution.

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

AutoNumbers should increment automatically, without duplicates.  But sometimes something goes wrong, and the next AutoNumber value is a duplicate.  This article shows how to recover from this problem.
This article shows how to get a list of available printers for display in a drop-down list, and then to use the selected printer to print an Access report or a Word document filled with Access data, using different syntax as needed for working with …
In Microsoft Access, learn how to use Dlookup and other domain aggregate functions and one method of specifying a string value within a string. Specify the first argument, which is the expression to be returned: Specify the second argument, which …
With Secure Portal Encryption, the recipient is sent a link to their email address directing them to the email laundry delivery page. From there, the recipient will be required to enter a user name and password to enter the page. Once the recipient …
Suggested Courses

777 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