473,385 Members | 1,908 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,385 software developers and data experts.

Connect to Internet from Access?

JHB
Hi.

How is it possible to load raw text from an Internet page (html-format), to
MS-Access?

My questions are:

How to connect to the page?

How to get the text back?

Thanks in advance

Jørn


Nov 13 '05 #1
10 2039
> How to connect to the page?

Dim ie As New InternetExplorer 'Reference: Microsoft Internet Controls
strNav = [url]
ie.Navigate strNav
How to get the text back?


good question...
Nov 13 '05 #2
If the data is in an HTML table or list you can read the data. See the
Access Help article "TransferText Method" for more info.

--
MGFoster:::mgf00 <at> earthlink <decimal-point> net
Oakland, CA (USA)

JHB wrote:
Hi.

How is it possible to load raw text from an Internet page (html-format), to
MS-Access?

My questions are:

How to connect to the page?

How to get the text back?

Nov 13 '05 #3
JHB
Thanks, for replay, both of you.

I've got it.

Greetings Jørn

Sub HentSide(Adr As String, ItemNr As Integer)
On Error GoTo fejl
Dim PauseTime, Start, Finish, TotalTime
ie.Navigate Adr
PauseTime = 2
Start = Timer
Do While Timer < Start + PauseTime
DoEvents
Loop
SideIHTMLFormat = ie.Document.childNodes.Item(ItemNr).innerHTML
Exit Sub
fejl:
MsgBox ("Siden er ikke tilgængelig i øjeblikket, prøv senere!")
End Sub

"JHB" <joern_bea@removeThis_tdcadsl.dk> skrev i en meddelelse
news:41***********************@dread15.news.tele.d k...
Hi.

How is it possible to load raw text from an Internet page (html-format), to MS-Access?

My questions are:

How to connect to the page?

How to get the text back?

Thanks in advance

Jørn

Nov 13 '05 #4
Tom
Greetings Jorn,

Is SideIHTMLFormat a string variable that stores all the text on the
webpage? It is not dimmed!

What is the english equivalent of HentSide?

What is the english equivalent of your error message?

Thanks!

Tom
"JHB" <joern_bea@removeThis_tdcadsl.dk> wrote in message
news:41***********************@dread15.news.tele.d k...
Thanks, for replay, both of you.

I've got it.

Greetings Jørn

Sub HentSide(Adr As String, ItemNr As Integer)
On Error GoTo fejl
Dim PauseTime, Start, Finish, TotalTime
ie.Navigate Adr
PauseTime = 2
Start = Timer
Do While Timer < Start + PauseTime
DoEvents
Loop
SideIHTMLFormat = ie.Document.childNodes.Item(ItemNr).innerHTML
Exit Sub
fejl:
MsgBox ("Siden er ikke tilgængelig i øjeblikket, prøv senere!")
End Sub

"JHB" <joern_bea@removeThis_tdcadsl.dk> skrev i en meddelelse
news:41***********************@dread15.news.tele.d k...
Hi.

How is it possible to load raw text from an Internet page (html-format),

to
MS-Access?

My questions are:

How to connect to the page?

How to get the text back?

Thanks in advance

Jørn


Nov 13 '05 #5
JHB
Hello Tom.

Dim SideIHTMLFormat As Variant, ie As New InternetExplorer
SideIHTMLFormat is a declared as variant and it stored all the text on the
WEB-page = ie.Document.childNodes.Item(ItemNr)
HentSide = GetSide ,an user declared sub/ could also be a function
MsgBox ("Siden er ikke tilgængelig i øjeblikket, prøv senere!") =
"The server is not responding, try later"

Jørn

"Tom" <tm*****@nospam.please> skrev i en meddelelse
news:mV****************@newsread3.news.pas.earthli nk.net...
Greetings Jorn,

Is SideIHTMLFormat a string variable that stores all the text on the
webpage? It is not dimmed!

What is the english equivalent of HentSide?

What is the english equivalent of your error message?

Thanks!

Tom
"JHB" <joern_bea@removeThis_tdcadsl.dk> wrote in message
news:41***********************@dread15.news.tele.d k...
Thanks, for replay, both of you.

I've got it.

Greetings Jørn

Sub HentSide(Adr As String, ItemNr As Integer)
On Error GoTo fejl
Dim PauseTime, Start, Finish, TotalTime
ie.Navigate Adr
PauseTime = 2
Start = Timer
Do While Timer < Start + PauseTime
DoEvents
Loop
SideIHTMLFormat = ie.Document.childNodes.Item(ItemNr).innerHTML
Exit Sub
fejl:
MsgBox ("Siden er ikke tilgængelig i øjeblikket, prøv senere!")
End Sub

"JHB" <joern_bea@removeThis_tdcadsl.dk> skrev i en meddelelse
news:41***********************@dread15.news.tele.d k...
Hi.

How is it possible to load raw text from an Internet page
(html-format), to
MS-Access?

My questions are:

How to connect to the page?

How to get the text back?

Thanks in advance

Jørn



Nov 13 '05 #6
Tom
Thanks, Jorn!!
"JHB" <joern_bea@removeThis_tdcadsl.dk> wrote in message
news:41***********************@dread15.news.tele.d k...
Hello Tom.

Dim SideIHTMLFormat As Variant, ie As New InternetExplorer
SideIHTMLFormat is a declared as variant and it stored all the text on the
WEB-page = ie.Document.childNodes.Item(ItemNr)
HentSide = GetSide ,an user declared sub/ could also be a function
MsgBox ("Siden er ikke tilgængelig i øjeblikket, prøv senere!") =
"The server is not responding, try later"

Jørn

"Tom" <tm*****@nospam.please> skrev i en meddelelse
news:mV****************@newsread3.news.pas.earthli nk.net...
Greetings Jorn,

Is SideIHTMLFormat a string variable that stores all the text on the
webpage? It is not dimmed!

What is the english equivalent of HentSide?

What is the english equivalent of your error message?

Thanks!

Tom
"JHB" <joern_bea@removeThis_tdcadsl.dk> wrote in message
news:41***********************@dread15.news.tele.d k...
Thanks, for replay, both of you.

I've got it.

Greetings Jørn

Sub HentSide(Adr As String, ItemNr As Integer)
On Error GoTo fejl
Dim PauseTime, Start, Finish, TotalTime
ie.Navigate Adr
PauseTime = 2
Start = Timer
Do While Timer < Start + PauseTime
DoEvents
Loop
SideIHTMLFormat = ie.Document.childNodes.Item(ItemNr).innerHTML
Exit Sub
fejl:
MsgBox ("Siden er ikke tilgængelig i øjeblikket, prøv senere!")
End Sub

"JHB" <joern_bea@removeThis_tdcadsl.dk> skrev i en meddelelse
news:41***********************@dread15.news.tele.d k...
> Hi.
>
>
>
> How is it possible to load raw text from an Internet page (html-format), to
> MS-Access?
>
> My questions are:
>
> How to connect to the page?
>
> How to get the text back?
>
>
>
> Thanks in advance
>
> Jørn
>
>
>
>



Nov 13 '05 #7
I'm curious what language it is (forgive my linguistic ignorance...)

"Tom" <tm*****@nospam.please> wrote in message
news:8C***************@newsread1.news.pas.earthlin k.net...
Thanks, Jorn!!
"JHB" <joern_bea@removeThis_tdcadsl.dk> wrote in message
news:41***********************@dread15.news.tele.d k...
Hello Tom.

Dim SideIHTMLFormat As Variant, ie As New InternetExplorer
SideIHTMLFormat is a declared as variant and it stored all the text on the WEB-page = ie.Document.childNodes.Item(ItemNr)
HentSide = GetSide ,an user declared sub/ could also be a function
MsgBox ("Siden er ikke tilgængelig i øjeblikket, prøv senere!") =
"The server is not responding, try later"

Jørn

"Tom" <tm*****@nospam.please> skrev i en meddelelse
news:mV****************@newsread3.news.pas.earthli nk.net...
Greetings Jorn,

Is SideIHTMLFormat a string variable that stores all the text on the
webpage? It is not dimmed!

What is the english equivalent of HentSide?

What is the english equivalent of your error message?

Thanks!

Tom
"JHB" <joern_bea@removeThis_tdcadsl.dk> wrote in message
news:41***********************@dread15.news.tele.d k...
> Thanks, for replay, both of you.
>
> I've got it.
>
> Greetings Jørn
>
> Sub HentSide(Adr As String, ItemNr As Integer)
> On Error GoTo fejl
> Dim PauseTime, Start, Finish, TotalTime
> ie.Navigate Adr
> PauseTime = 2
> Start = Timer
> Do While Timer < Start + PauseTime
> DoEvents
> Loop
> SideIHTMLFormat = ie.Document.childNodes.Item(ItemNr).innerHTML
> Exit Sub
> fejl:
> MsgBox ("Siden er ikke tilgængelig i øjeblikket, prøv senere!")
> End Sub
>
>
>
> "JHB" <joern_bea@removeThis_tdcadsl.dk> skrev i en meddelelse
> news:41***********************@dread15.news.tele.d k...
> > Hi.
> >
> >
> >
> > How is it possible to load raw text from an Internet page

(html-format),
> to
> > MS-Access?
> >
> > My questions are:
> >
> > How to connect to the page?
> >
> > How to get the text back?
> >
> >
> >
> > Thanks in advance
> >
> > Jørn
> >
> >
> >
> >
>
>



Nov 13 '05 #8
Tom
Jorn,

Your version of Access must be a lot better than mine if this code works as
you imply it does!! Besides Dimming SidelHTMLFormat there are other
problems.
1. Dim PauseTime, Start, Finish, TotalTime AS WHAT?
2. What is your code to define ie? You said Dim ie As New InternetExplorer.
That doesn't work!
3. In the expression, ie.Document.childNodes.Item(ItemNr).innerHTML, please
explain what "Item" is and how does one know what value to assign to ItemNr.

Thanks,

Tom
"JHB" <joern_bea@removeThis_tdcadsl.dk> wrote in message
news:41***********************@dread15.news.tele.d k...
Thanks, for replay, both of you.

I've got it.

Greetings Jørn

Sub HentSide(Adr As String, ItemNr As Integer)
On Error GoTo fejl
Dim PauseTime, Start, Finish, TotalTime
ie.Navigate Adr
PauseTime = 2
Start = Timer
Do While Timer < Start + PauseTime
DoEvents
Loop
SideIHTMLFormat = ie.Document.childNodes.Item(ItemNr).innerHTML
Exit Sub
fejl:
MsgBox ("Siden er ikke tilgængelig i øjeblikket, prøv senere!")
End Sub

"JHB" <joern_bea@removeThis_tdcadsl.dk> skrev i en meddelelse
news:41***********************@dread15.news.tele.d k...
Hi.

How is it possible to load raw text from an Internet page (html-format),

to
MS-Access?

My questions are:

How to connect to the page?

How to get the text back?

Thanks in advance

Jørn


Nov 13 '05 #9
JHB
Hello Tom.

Maybe mine version is better as yours, but I don't think so, (mine is Access
2000). *S*

I don't think you have read the whole thread?

But anyway: deko wrote:

Dim ie As New InternetExplorer 'Reference: Microsoft Internet Controls
strNav = [url]
ie.Navigate strNav

To set the references for Microsoft Internet Controls.

Open the code window: Chose Tools->References, (menuline), find the
"Microsoft Internet Controls" in the list, mark it, and then you set set/dim
ie As New InternetExplorer.

You can dim PauseTime, Start, Finish, TotalTime as long, date, variant, I
haven't special use for a particular type, only to pause the code a few
seconds, to get the page loaded.

Question 3.

Set a break point one line below:

SideIHTMLFormat = ie.Document.childNodes.Item(ItemNr).innerHTML

From the menu line chose View->Locals Window.

In the Locals Window expand "Me" find "ie" and expand it, find "Documents"
and expand it, find childNodes and expand it, then you'll see the "Item" and
then you can chose what number you have to put in, to get the side you want,
(when you have seen the value of the innerHTML. Remember item start by zero,
so if you want Item no. 2 you have to set: SideIHTMLFormat =
ie.Document.childNodes.Item(1).innerHTML

You can't know what value ItemNr does have, it depend of the WEB-page.

Jørn

"Tom" <tm*****@nospam.please> skrev i en meddelelse
news:dI****************@newsread1.news.pas.earthli nk.net...
Jorn,

Your version of Access must be a lot better than mine if this code works as you imply it does!! Besides Dimming SidelHTMLFormat there are other
problems.
1. Dim PauseTime, Start, Finish, TotalTime AS WHAT?
2. What is your code to define ie? You said Dim ie As New InternetExplorer. That doesn't work!
3. In the expression, ie.Document.childNodes.Item(ItemNr).innerHTML, please explain what "Item" is and how does one know what value to assign to ItemNr.
Thanks,

Tom

Nov 13 '05 #10
JHB
Hello deko.

The language is, Danish *GG*

Jørn

"deko" <www.clearpointsystems.com@use_contact_form.com> skrev i en
meddelelse news:FC*****************@newssvr21.news.prodigy.co m...
I'm curious what language it is (forgive my linguistic ignorance...)

Nov 13 '05 #11

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

Similar topics

6
by: Jeff Sandler | last post by:
I have a database I created in mySQL. I've been entering data every day into the database using a Java application that I wrote. The database and the Java program are on the same Win 98 SE...
9
by: Tom Dacon | last post by:
I have a little desktop application (it happens to be a Windows Forms analog clock) that's written in VB.Net (2003). I placed a shortcut in my Startup program group to start it up when I log on. I...
1
by: michi | last post by:
Hello there... I am trying to link to my access db on my server over the internet. My Administrator told me that I need to create a shared drive which is accessing the db server via ftp. So...
1
by: Zvonko Tusek | last post by:
Is there a way to use access database on web host (I have a web hosting account) in visual basic. I want to make Visual basic client applications that connect to internet and work with access...
5
by: mayamorning123 | last post by:
A comparison among six VSS remote tools including SourceOffSite , SourceAnyWhere, VSS Connect, SourceXT, VSS Remoting, VSS.NET To view the full article, please visit...
3
by: leveraged | last post by:
Why can I only connect to or create a web app in VS 2003 using localhost while I am connected to the internet. I have no problems using VS 2002 but for some reason I get Microsoft Development...
1
by: Özden Irmak | last post by:
Hello, I'm in need of confirmation for 2 questions. I would be glad if anybody could help me : 1) A client computer computer is going to connect a web service we'll create with .Net. This...
1
by: MSK | last post by:
Hi, I am a newbie to .NET/Networking if I develop a project in 1. VB.NET + SQL server database 2. ASP.NET + SQL server database 3. .NET ( vb or asp) + Access database
3
by: MSK | last post by:
Hi, I am a newbie to .NET/Networking if I develop a project in 1. VB.NET + SQL server database 2. ASP.NET + SQL server database 3. .NET ( vb or asp) + Access database
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:
If we have dozens or hundreds of excel to import into the database, if we use the excel import function provided by database editors such as navicat, it will be extremely tedious and time-consuming...
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
by: emmanuelkatto | last post by:
Hi All, I am Emmanuel katto from Uganda. I want to ask what challenges you've faced while migrating a website to cloud. Please let me know. Thanks! Emmanuel
1
by: nemocccc | last post by:
hello, everyone, I want to develop a software for my android phone for daily needs, any suggestions?
1
by: Sonnysonu | last post by:
This is the data of csv file 1 2 3 1 2 3 1 2 3 1 2 3 2 3 2 3 3 the lengths should be different i have to store the data by column-wise with in the specific length. suppose the i have to...
0
by: Hystou | last post by:
Most computers default to English, but sometimes we require a different language, especially when relocating. Forgot to request a specific language before your computer shipped? No problem! You can...
0
jinu1996
by: jinu1996 | last post by:
In today's digital age, having a compelling online presence is paramount for businesses aiming to thrive in a competitive landscape. At the heart of this digital strategy lies an intricately woven...

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.