473,378 Members | 1,084 Online
Bytes | Software Development & Data Engineering Community
Post Job

Home Posts Topics Members FAQ

Join Bytes to post your question to a community of 473,378 software developers and data experts.

Grab HTML and display in form.

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
Nov 13 '05 #1
4 7177
Nick J wrote:
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

You can open a socket to the webserver and download the contents to a
string. You can then use that string in your form.
Nov 13 '05 #2
-----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:
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

Nov 13 '05 #3
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:fh*****************@newsread3.news.pas.earthl ink.net...
-----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:
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


Nov 13 '05 #4
rkc
Nick J wrote:
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


Take a look at:

http://www.4guysfromrolla.com/webtech/110100-1.shtml
Nov 13 '05 #5

This thread has been closed and replies have been disabled. Please start a new discussion.

Similar topics

3
by: dan glenn | last post by:
hi. I want to code a 'preview' function into a guestbook entry page. I can do it with a button that posts, bringing up a whole new page showing a preview of what has been entered, and then the user...
7
by: Hansan | last post by:
Hi all, I hope you have time to help me out a little. My problem is that I want to combine some python code I have made with some html templates, I found a tutorial at dev shed:...
2
by: David Taylor | last post by:
I'm looking for a way to grab the HTML behind one of my pages and display it to the user. The page I'm trying to get the HTML from is an ASP page, so obviously I'm looking for the post-asp...
2
by: Jon Haakon | last post by:
Hi, I'm developing a websolution using ASP and DHTML technology that's running on a MS IIS webserver. My solution is frame based with a toolbar on top, a hidden frame for scripts in the...
4
by: Ed | last post by:
I am building a glossary. Each letter of the alphabet has its own HTML page, and each glossary entry on the page already has a unique HTML anchor tag immediately to the left of it. I've already...
10
by: Jonathan Schwarz via DotNetMonster.com | last post by:
Hi folks, I am a complete newbie to ASP.NET, VB, etc... I am coming from a Cold Fusion background where it only takes me 4 lines to query a MSSQL db and display a field name. Please, how do I...
8
by: '69 Camaro | last post by:
Perhaps I'm Googling for the wrong terms. Does anyone have links to examples of the syntax necessary to read the HTML on another Web page when that HTML is produced from JavaScript using the...
1
by: nanaalwi | last post by:
Hi, Currently I'm developing a software using VB.net that can grab an image using Matrox Morphis card and display it in a PictureBox. The software can grab the image already and display it in the...
10
by: dkyadav80 | last post by:
<html> /// here what shoud be java script for: ->when script run then not display all input text field only display selection field. ->when user select other value for institute only this...
1
by: CloudSolutions | last post by:
Introduction: For many beginners and individual users, requiring a credit card and email registration may pose a barrier when starting to use cloud servers. However, some cloud server providers now...
0
isladogs
by: isladogs | last post by:
The next Access Europe User Group meeting will be on Wednesday 3 Apr 2024 starting at 18:00 UK time (6PM UTC+1) and finishing by 19:30 (7.30PM). In this session, we are pleased to welcome former...
0
by: ryjfgjl | last post by:
In our work, we often need to import Excel data into databases (such as MySQL, SQL Server, Oracle) for data analysis and processing. Usually, we use database tools like Navicat or the Excel import...
0
by: taylorcarr | last post by:
A Canon printer is a smart device known for being advanced, efficient, and reliable. It is designed for home, office, and hybrid workspace use and can also be used for a variety of purposes. However,...
0
by: Charles Arthur | last post by:
How do i turn on java script on a villaon, callus and itel keypad mobile phone
0
by: aa123db | last post by:
Variable and constants Use var or let for variables and const fror constants. Var foo ='bar'; Let foo ='bar';const baz ='bar'; Functions function $name$ ($parameters$) { } ...
0
by: ryjfgjl | last post by:
In our work, we often receive Excel tables with data in the same format. If we want to analyze these data, it can be difficult to analyze them because the data is spread across multiple Excel files...
0
BarryA
by: BarryA | last post by:
What are the essential steps and strategies outlined in the Data Structures and Algorithms (DSA) roadmap for aspiring data scientists? How can individuals effectively utilize this roadmap to progress...
0
by: Hystou | last post by:
There are some requirements for setting up RAID: 1. The motherboard and BIOS support RAID configuration. 2. The motherboard has 2 or more available SATA protocol SSD/HDD slots (including MSATA, M.2...

By using Bytes.com and it's services, you agree to our Privacy Policy and Terms of Use.

To disable or enable advertisements and analytics tracking please visit the manage ads & tracking page.