Avatar of sbornstein2
sbornstein2

asked on 

Access 2007 - Can't add reference to specified file?

I am trying to reference a DLL and any DLL I try it seems like this error occurs.  I believe the DLL is already register as I get that loaded error on the regsvr32 of it.  I am using Vista and Access 07.  Any ideas all?
Microsoft Access

Avatar of undefined
Last Comment
harfang
Avatar of harfang
harfang
Flag of Switzerland image

Is this an ActiveX DLL? If yes, you should be able to add it using, from VB, (Tools | References), [Browse] button. If not, you can perhaps simply declare the DLL functions, or you might need to load the DLL manually, using LoadLibrary in kernel32, before you can use them. A good example for that can be found here:

Stephan Lebans: MouseWheelOnOff (sample database with a DLL)
http://www.lebans.com/mousewheelonoff.htm

(°v°)
Avatar of Scott McDaniel (EE MVE )
What DLL are you trying to reference? And what error are you getting when you try to reference it from Access?
Avatar of sbornstein2
sbornstein2

ASKER

its a mileage DLL from a mileage program
ASKER CERTIFIED SOLUTION
Avatar of harfang
harfang
Flag of Switzerland image

Blurred text
THIS SOLUTION IS ONLY AVAILABLE TO MEMBERS.
View this solution by signing up for a free trial.
Members can start a 7-Day free trial and enjoy unlimited access to the platform.
See Pricing Options
Start Free Trial
Microsoft Access
Microsoft Access

Microsoft Access is a rapid application development (RAD) relational database tool. Access can be used for both desktop and web-based applications, and uses VBA (Visual Basic for Applications) as its coding language.

226K
Questions
--
Followers
--
Top Experts
Get a personalized solution from industry experts
Ask the experts
Read over 600 more reviews

TRUSTED BY

IBM logoIntel logoMicrosoft logoUbisoft logoSAP logo
Qualcomm logoCitrix Systems logoWorkday logoErnst & Young logo
High performer badgeUsers love us badge
LinkedIn logoFacebook logoX logoInstagram logoTikTok logoYouTube logo