Dev Ashish's FTP module - Internet Data transfer Library

B

biganthony

Hi,

I am having a problem getting Dev's FTP module (Internet Data transfer
Library) working. (http://www.mvps.org/access/modules/mdl0037.htm). I am sure
it is something I have not done properly.

I am using Access 2003 SP2.

I tried using his sample database and imported the modules into it as given
by this line:

"To use this functionality in Microsoft Access 2000 or higher, please import
all the classes from the addin (which does not have the tables required for a
typical Access addin) in your own Access project. To use the classes, just
refer to them with the 'InetTransferLib.' prefix (eg: Dim objHTTP As HTTP)"

I also tried a blank database and imported the modules and the form from his
sample database given on the page.

Each time I attempt to compile or when I click any of the three buttons on
the sample form, I receive the following error: "Compile Error: User-defined
type not defined" with the following code highlighted: "objFTP As
InetTransferLib.FTP" or "objHTTP As InetTransferLib.HTTP" highlighted when I
click the HTTP button on the form.

Can someone please tell me what I have forgotten to do?

Thanks
Anthony
 
D

Dirk Goldgar

biganthony said:
Hi,

I am having a problem getting Dev's FTP module (Internet Data transfer
Library) working. (http://www.mvps.org/access/modules/mdl0037.htm). I am
sure
it is something I have not done properly.

I am using Access 2003 SP2.

I tried using his sample database and imported the modules into it as
given
by this line:

"To use this functionality in Microsoft Access 2000 or higher, please
import
all the classes from the addin (which does not have the tables required
for a
typical Access addin) in your own Access project. To use the classes, just
refer to them with the 'InetTransferLib.' prefix (eg: Dim objHTTP As
HTTP)"

I also tried a blank database and imported the modules and the form from
his
sample database given on the page.

Each time I attempt to compile or when I click any of the three buttons on
the sample form, I receive the following error: "Compile Error:
User-defined
type not defined" with the following code highlighted: "objFTP As
InetTransferLib.FTP" or "objHTTP As InetTransferLib.HTTP" highlighted when
I
click the HTTP button on the form.

Can someone please tell me what I have forgotten to do?


I've used these classes in several apps. Having imported the class modules
into your own database, refer to them *without* the "'InetTransferLib."
prefix:

Dim objFTP As FTP

Where the web page tells you to use the prefix, it would seem to be a typo,
as you see the example given in parentheses doesn't use the prefix.
 
S

Stuart McCall

biganthony said:
Hi,

I am having a problem getting Dev's FTP module (Internet Data transfer
Library) working. (http://www.mvps.org/access/modules/mdl0037.htm). I am
sure
it is something I have not done properly.

I am using Access 2003 SP2.

I tried using his sample database and imported the modules into it as
given
by this line:

"To use this functionality in Microsoft Access 2000 or higher, please
import
all the classes from the addin (which does not have the tables required
for a
typical Access addin) in your own Access project. To use the classes, just
refer to them with the 'InetTransferLib.' prefix (eg: Dim objHTTP As
HTTP)"

I also tried a blank database and imported the modules and the form from
his
sample database given on the page.

Each time I attempt to compile or when I click any of the three buttons on
the sample form, I receive the following error: "Compile Error:
User-defined
type not defined" with the following code highlighted: "objFTP As
InetTransferLib.FTP" or "objHTTP As InetTransferLib.HTTP" highlighted when
I
click the HTTP button on the form.

Can someone please tell me what I have forgotten to do?

Thanks
Anthony

Instead of importing, try setting a reference to InetTransferLib.mda (In the
VBE, Tools -> References. Then click the Browse button, change the 'Files of
Type' combo to *.mda. Navigate to wherever you stored the lib and click
Ok/Open.
Click Ok on the references dialog. Try your code again.

This worked for me when I tried it (at least I didn't get any compile
errors).
 
B

biganthony via AccessMonster.com

Thanks Dirk. That worked.

Anthony


Dirk said:
[quoted text clipped - 30 lines]
Can someone please tell me what I have forgotten to do?

I've used these classes in several apps. Having imported the class modules
into your own database, refer to them *without* the "'InetTransferLib."
prefix:

Dim objFTP As FTP

Where the web page tells you to use the prefix, it would seem to be a typo,
as you see the example given in parentheses doesn't use the prefix.
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Top