Home | Contact Us | FAQ | Search & Site Map | Link to Us
Sign In | Join | Other 45 Sites in Network
Home
Discussion GroupsFormsForms ProgrammingQueriesModules / DAO / VBAReports / PrintingMacrosDatabase DesignSecurityConversionImporting / LinkingSQL Server / ADPMultiuser / NetworkingReplicationSetup / ConfigurationDeveloper ToolkitsActiveX ControlsNew UsersGeneral 1General 2
Access DirectoryToolsTutorialsUser Groups
Related Topics
SQL ServerOther DB ProductsMS OfficeMore Topics ...

MS Access Forum / ActiveX Controls / April 2007

Tip: Looking for answers? Try searching our database.

Reference Problem

Thread view: 
Enable EMail Alerts  Start New Thread
Thread rating: 
Jeremy - 23 Apr 2007 19:02 GMT
I have created a couple of basic Dll's using VS 05 for use as an add in to an
MS Access app. They are compiled and I can see them in the GAC, but Access
barks that they can't be referenced. Did I forget something? the code is below

Public Class UserInfo
   Dim strID As String
   Dim strFirstName As String
   Dim strLastName As String
   Dim strEmail As String
   Dim strPhone As String
   Dim strServer As String

   Public Property WindowsID()
       Get
           Return strID
       End Get
       Set(ByVal value)
           strID = value
       End Set
   End Property

   Public Property FirstName()
       Get
           Return strFirstName
       End Get
       Set(ByVal value)
           strFirstName = value
       End Set
   End Property

   Public Property LastName()
       Get
           Return strLastName
       End Get
       Set(ByVal value)
           strLastName = value
       End Set
   End Property

   Public Property EmailAddress()
       Get
           Return strEmail
       End Get
       Set(ByVal value)
           strEmail = value
       End Set
   End Property

   Public Property PhoneNumber()
       Get
           Return strPhone
       End Get
       Set(ByVal value)
           strPhone = value
       End Set
   End Property

   Public Property MailServer()
       Get
           Return strServer
       End Get
       Set(ByVal value)
           strServer = value
       End Set
   End Property
End Class

Signature

JD

Tony Toews [MVP] - 24 Apr 2007 04:31 GMT
>I have created a couple of basic Dll's using VS 05 for use as an add in to an
>MS Access app. They are compiled and I can see them in the GAC, but Access
>barks that they can't be referenced.

What do you mean by GAC?

Hmm, Stephen Lebans has successfully created at least one DLL in I
think VB.  Let's see if he will jump in.

Tony
Signature

Tony Toews, Microsoft Access MVP
  Please respond only in the newsgroups so that others can
read the entire thread of messages.
  Microsoft Access Links, Hints, Tips & Accounting Systems at
http://www.granite.ab.ca/accsmstr.htm

Alex Dybenko - 24 Apr 2007 06:15 GMT
Hi,
you cannot reference .net dlls in access directly, but there is a way. Look
for Ken Getz article on using .net in access on MSDN for more info (sorry,
cant provide a link, but you will easy find it)

Signature

Best regards,
___________
Alex Dybenko (MVP)
http://alexdyb.blogspot.com
http://www.PointLtd.com

>I have created a couple of basic Dll's using VS 05 for use as an add in to
>an
[quoted text clipped - 64 lines]
>    End Property
> End Class
 
Sign In
Join
My Latest Posts
My Monitored Threads
My Blog
My Photo Gallery
My Profile
My Homepage

Start New Thread
Enable EMail Alerts
Rate this Thread



©2008 Advenet LLC   Privacy Policy - Terms of Use
This website includes both content owned or controlled by Advenet as well as content owned or controlled by third parties.