Help:Using VB Funtions In Access With DLL's, EXE's 
Author Message
 Help:Using VB Funtions In Access With DLL's, EXE's

I am currently writing some functions in VB to be used in access to speed up
my access applications.

I have written a very simple function in both activex dll and exe format and
referenced the dll/exe from the access database but still cannot use the
function. Can anyone send me a vary brief description of how to do this

Many Thanks In anticipation

Regards
Sheridan



Tue, 17 Apr 2001 03:00:00 GMT  
 Help:Using VB Funtions In Access With DLL's, EXE's
You use the functions from the ActiveX server as methods of a class object.


Quote:
>I am currently writing some functions in VB to be used in access to speed
up
>my access applications.

>I have written a very simple function in both activex dll and exe format
and
>referenced the dll/exe from the access database but still cannot use the
>function. Can anyone send me a vary brief description of how to do this

>Many Thanks In anticipation

>Regards
>Sheridan



Tue, 17 Apr 2001 03:00:00 GMT  
 Help:Using VB Funtions In Access With DLL's, EXE's
Terry, Thanks For the advice but how do you do that?

Quote:

>You use the functions from the ActiveX server as methods of a class

object.>


Tue, 17 Apr 2001 03:00:00 GMT  
 Help:Using VB Funtions In Access With DLL's, EXE's

Quote:

> Terry, Thanks For the advice but how do you do that?


> >You use the functions from the ActiveX server as methods of a class
> object.>

Sheridan,

Take a look at kb article q185731.

Good Luck,
Gerry T.



Thu, 19 Apr 2001 03:00:00 GMT  
 Help:Using VB Funtions In Access With DLL's, EXE's

Quote:
>I have written a very simple function in both activex dll and exe format and
>referenced the dll/exe from the access database but still cannot use the
>function. Can anyone send me a vary brief description of how to do this

You need to define an object in your access code and then use "CreateObject" to
set it to your dll. After which you can access the Public Properties, Functions
and Subs in the class object:

Dim oVBObject As Object
Dim DummyVar as Variant

Set oVBObject = CreateObject("DLLName.ClassName")

oVBObject.Property = "Value" 'Setting a property of the class object
DummyVar = oVBObject.Function 'Using a function of the class object
ovbObject.SubRoutine 'Calling a Subroutine of the Class Object

'Also make sure you destroy the object when you are finished so that system
memory is released.

Set oVBObject = Nothing

Good Luck,

Chat
VB Developer for PC Scale

"Genius's and Fools, were all alike under God's eyes." - Unk



Tue, 24 Apr 2001 03:00:00 GMT  
 
 [ 5 post ] 

 Relevant Pages 

1. Help:Using VB Funtions In Access With DLL's, EXE's

2. Help:Using VB Funtions In Access With DLL's, EXE's

3. Help:Using VB Funtions In Access With DLL's, EXE's

4. Including dll's and ocx's in VB exe file

5. Extracting Icons from Exe's Dll's Ico's into a ListImage Control

6. Help: Using DLL's with VB and VC++

7. Using Access 'Security' from VB

8. Compiled Dll's Exe's and references

9. Visual Basic 5.0 .EXE's and the various DLL's it needs

10. EXE's Vs DLL's Naming Problem

11. ActiveX dll's and EXE's

12. Licensing for ActiveX DLL's and EXE's

 

 
Powered by phpBB® Forum Software