Get source from html

  • Thread starter Thread starter Guest
  • Start date Start date
G

Guest

Hi,

I need to open a web page, get source code and copy it into a memo field on
a form.

is this possible?. How would I do it in code.

Details

Web: www.anywebsite.com
form: frm_Web_source field: meoWeb_Text

thanks

Trev
 
Thanks Alex,

Not very good with things like this please help me.

When I run get following error

"Can't find project or library"

on the line

Dim objHTTP As InetTransferLib.HTTP

I am running access 2000. How do I correct it.

Thanks

Trev
 
Hi,
see what is written on the page:
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)

so you have to import and then replace InetTransferLib.HTTP with HTTP

--
Best regards,
___________
Alex Dybenko (MVP)
http://alexdyb.blogspot.com
http://www.PointLtd.com
 
Sorry Alex I must be thick,

Don't understand what you mean by "classes from the addin" when I go to
"Addin manager I see nothing that says "Classes".

Thanks

Trev
 
Hi Alex,

Sorry to be a pain

Missing something again. Yet another problem, Thick or Whot?

When I try and run it I get :-

The module is not a valid type.

with "Dim objHTTP As HTTP" as the highlighted error.

Why all these problems?
 
hi,
try the following. for testing - create a new mdb, import HTTP class there,
then try to run your proc. this should work, else something wrong with
access. then delete HTTP class from your mdb, comment your proc which using
this class and make sure that your mdb is compiled. if no - then fix the
errors, else - import once again HTTP class and uncomment your proc

also make sure that you HTTP - is a class module, and then is no other
proc/modules called HTTP

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