Connecting Tech Pros Worldwide Help | Site Map

Grab HTML and display in form.

  #1  
Old November 13th, 2005, 09:59 AM
Nick J
Guest
 
Posts: n/a
Hi,

I am currently working on a parcel tracking facility. Currently I am using
Application.FollowHyperlink (see code below) but this means opening a new
Internet Explorer window. What I would like to do is for Access to access
the information from the webpage then only text from a certain part of the
webpage (eg ITEM DELIVERED on 12/04/05 at 12.30pm) be displayed in the form.

Am I looking at an easy solution or would this be quite complicated?

The current code I am using is...

Private Sub CheckRmStatus_Click()
Dim WebsiteRM As String

WebsiteRM = "http://afis.postoffice.co.uk:8080/RoyalMail/RMGTT?ITEMIN=" &
Me.RmTrackingNumber & "&DATEIN=12/12/03"

Application.FollowHyperlink WebsiteRM, , True
Exit Sub


--

Kind Regards...

Customer Services Team
Blue Bell Trading

+++ WHEN REPLYING PLEASE DO NOT DELETE ANY OF THE TEXT AS WE NEED IT FOR
REFERENCE +++

Blue Bell Trading


  #2  
Old November 13th, 2005, 10:00 AM
Ol!v!é
Guest
 
Posts: n/a

re: Grab HTML and display in form.


Nick J wrote:[color=blue]
> Hi,
>
> I am currently working on a parcel tracking facility. Currently I am using
> Application.FollowHyperlink (see code below) but this means opening a new
> Internet Explorer window. What I would like to do is for Access to access
> the information from the webpage then only text from a certain part of the
> webpage (eg ITEM DELIVERED on 12/04/05 at 12.30pm) be displayed in the form.
>
> Am I looking at an easy solution or would this be quite complicated?
>
> The current code I am using is...
>
> Private Sub CheckRmStatus_Click()
> Dim WebsiteRM As String
>
> WebsiteRM = "http://afis.postoffice.co.uk:8080/RoyalMail/RMGTT?ITEMIN=" &
> Me.RmTrackingNumber & "&DATEIN=12/12/03"
>
> Application.FollowHyperlink WebsiteRM, , True
> Exit Sub
>
>[/color]
You can open a socket to the webserver and download the contents to a
string. You can then use that string in your form.
  #3  
Old November 13th, 2005, 10:00 AM
MGFoster
Guest
 
Posts: n/a

re: Grab HTML and display in form.


-----BEGIN PGP SIGNED MESSAGE-----
Hash: SHA1

You can use the Microsoft Internet Transfer control. I have it as part
of a VB5 installation. It may also be in the Access (Office)
developer's edition of Access (Office). With it you can read a WEB page
like this:

Dim strPage As String
WebsiteRM = "http://afis.postoffice.co.uk:8080/" & _
"RoyalMail/RMGTT?ITEMIN=" & _
Me!RmTrackingNumber & "&DATEIN=12/12/03"
Inet1.AccessType = icUseDefault
strPage = Inet1.OpenURL WebsiteRM

strPage should hold the complete page from the URL.
--
MGFoster:::mgf00 <at> earthlink <decimal-point> net
Oakland, CA (USA)

-----BEGIN PGP SIGNATURE-----
Version: PGP for Personal Privacy 5.0
Charset: noconv

iQA/AwUBQmKQzIechKqOuFEgEQKMgQCfTBn7c16WO3hbeg8UUved02 i8340AmQHK
XDjb+ujLbZHVm53/FWKa7qNb
=SBxf
-----END PGP SIGNATURE-----

Nick J wrote:[color=blue]
> Hi,
>
> I am currently working on a parcel tracking facility. Currently I am using
> Application.FollowHyperlink (see code below) but this means opening a new
> Internet Explorer window. What I would like to do is for Access to access
> the information from the webpage then only text from a certain part of the
> webpage (eg ITEM DELIVERED on 12/04/05 at 12.30pm) be displayed in the form.
>
> Am I looking at an easy solution or would this be quite complicated?
>
> The current code I am using is...
>
> Private Sub CheckRmStatus_Click()
> Dim WebsiteRM As String
>
> WebsiteRM = "http://afis.postoffice.co.uk:8080/RoyalMail/RMGTT?ITEMIN=" &
> Me.RmTrackingNumber & "&DATEIN=12/12/03"
>
> Application.FollowHyperlink WebsiteRM, , True
> Exit Sub
>
>[/color]
  #4  
Old November 13th, 2005, 10:00 AM
Nick J
Guest
 
Posts: n/a

re: Grab HTML and display in form.


Hi,

Thats a shame, I do not have the developer version of access :(

Maybe in the future I'll see about getting it.

--

Kind Regards...

Customer Services Team
Blue Bell Trading

+++ WHEN REPLYING PLEASE DO NOT DELETE ANY OF THE TEXT AS WE NEED IT FOR
REFERENCE +++

Blue Bell Trading
"MGFoster" <me@privacy.com> wrote in message
news:fhw8e.7658$yq6.2393@newsread3.news.pas.earthl ink.net...[color=blue]
> -----BEGIN PGP SIGNED MESSAGE-----
> Hash: SHA1
>
> You can use the Microsoft Internet Transfer control. I have it as part
> of a VB5 installation. It may also be in the Access (Office)
> developer's edition of Access (Office). With it you can read a WEB page
> like this:
>
> Dim strPage As String
> WebsiteRM = "http://afis.postoffice.co.uk:8080/" & _
> "RoyalMail/RMGTT?ITEMIN=" & _
> Me!RmTrackingNumber & "&DATEIN=12/12/03"
> Inet1.AccessType = icUseDefault
> strPage = Inet1.OpenURL WebsiteRM
>
> strPage should hold the complete page from the URL.
> --
> MGFoster:::mgf00 <at> earthlink <decimal-point> net
> Oakland, CA (USA)
>
> -----BEGIN PGP SIGNATURE-----
> Version: PGP for Personal Privacy 5.0
> Charset: noconv
>
> iQA/AwUBQmKQzIechKqOuFEgEQKMgQCfTBn7c16WO3hbeg8UUved02 i8340AmQHK
> XDjb+ujLbZHVm53/FWKa7qNb
> =SBxf
> -----END PGP SIGNATURE-----
>
> Nick J wrote:[color=green]
>> Hi,
>>
>> I am currently working on a parcel tracking facility. Currently I am
>> using Application.FollowHyperlink (see code below) but this means opening
>> a new Internet Explorer window. What I would like to do is for Access to
>> access the information from the webpage then only text from a certain
>> part of the webpage (eg ITEM DELIVERED on 12/04/05 at 12.30pm) be
>> displayed in the form.
>>
>> Am I looking at an easy solution or would this be quite complicated?
>>
>> The current code I am using is...
>>
>> Private Sub CheckRmStatus_Click()
>> Dim WebsiteRM As String
>>
>> WebsiteRM = "http://afis.postoffice.co.uk:8080/RoyalMail/RMGTT?ITEMIN=" &
>> Me.RmTrackingNumber & "&DATEIN=12/12/03"
>>
>> Application.FollowHyperlink WebsiteRM, , True
>> Exit Sub
>>[/color][/color]

  #5  
Old November 13th, 2005, 10:00 AM
rkc
Guest
 
Posts: n/a

re: Grab HTML and display in form.


Nick J wrote:
[color=blue]
> The current code I am using is...
>
> Private Sub CheckRmStatus_Click()
> Dim WebsiteRM As String
>
> WebsiteRM = "http://afis.postoffice.co.uk:8080/RoyalMail/RMGTT?ITEMIN=" &
> Me.RmTrackingNumber & "&DATEIN=12/12/03"
>
> Application.FollowHyperlink WebsiteRM, , True
> Exit Sub[/color]

Take a look at:

http://www.4guysfromrolla.com/webtech/110100-1.shtml
Closed Thread


Similar Threads
Thread Thread Starter Forum Replies Last Post
asp.net form to send a request to a put request eswanson answers 9 November 18th, 2005 10:16 PM
Is it possible to read a textbox control from another web form? Paul Hale answers 2 November 17th, 2005 10:46 PM
Is it possible to read a textbox control from another web form? Paul Hale answers 2 November 17th, 2005 10:45 PM