473,545 Members | 1,890 Online
Bytes | Software Development & Data Engineering Community
+ Post

Home Posts Topics Members FAQ

Automating Internet Explorer from MS Access

2 New Member
Greetings:

I'm looking for some help in automating (what I thought would be) a simple procedure in Internet Explorer. I'm trying to put the following operation under a button click in an MS Access database form:

1. Navigate to URL and click button
2. Enter user name and password
3. Apply filters (enter criteria in text boxes)
4. Execute query (another button click)
5. Export results to network server
6. Data mining using Monarch software
7. Export to Access
8. Run Attachmate macro to input data to mainframe system

I am not a legitimate programmer, but have had some success in picking up vb(a) over the years just by using the help topics in the vb editor in MS Access modules. Remarkably, I've figured out items 1, 6, 7, and 8 myself. I think if I could just get some help with code that would enumerate the names or tags or ids of the elements on the web page, I could finish 2 - 5.

Can anyone provide vb code using the Microsoft Internet Explorer references library, and/or the Microsoft HTML references library that would show me a list of the elements on a web document? An example of how to use getElementbyId or TagName (or your own better idea) to perform subsequent text and click operations would also be handy.

Much obliged! This code is going to save hours and hours of repetetive data manipulation every week for an office of about 200 people.
Mar 15 '07 #1
4 3183
willakawill
1,646 Top Contributor
Moved your thread to the access forum
Mar 16 '07 #2
nico5038
3,080 Recognized Expert Specialist
I've used in the past the code from:
http://www.planet-source-code.com/vb/scripts/ShowCode.asp?tx tCodeId=58524&l ngWId=1

This will get the selected text and thus save the copy/paste for the user.

The HTMLDocument will allow the manipulation of the fields, but I've not experimented with that yet...

Nic;o)
Mar 17 '07 #3
Denburt
1,356 Recognized Expert Top Contributor
If I were you I would do my best to try a more direct approach, If this is on your companies intranet find out the type of database, location etc. and get the data that way. If it is on the internet maybe you could contact the company and get them to set up an XML file.

If you really want to or have the need to root through the webpage remember any names or ID they are using today might change tomorrow. This said I have a ton of code used to interface with WebPages, from a previous project, however it is at home at the moment. I will gladly dig it up when I get there but I may be able to get you started, if I am not mistaken it would be something to the effect of:

Expand|Select|Wrap|Line Numbers
  1. Set myPage = Application.FollowHyperlink(Address, SubAddress, NewWindow, AddHistory, ExtraInfo, Method, HeaderInfo)
From there you should be able to refer to the elements on the page using the object myPage.

Hope this helps!
Mar 19 '07 #4
attachmatey
2 New Member
Thanks to all, and sorry I've been incommunicado. I tried the above listed tips, and quickly moved into territory that is beyond my skill scope. So, I figured out that the web app is actually calling some other software that is also available to me through my company and will attempt to engineer the whole procedure by executing the software directly, instead of through the intranet site.

I appreciate the time taken to reply to me, and hope that it wasn't too much!

Many thanks!
Apr 3 '07 #5

Sign in to post your reply or Sign up for a free account.

Similar topics

12
19565
by: SunshineGirl | last post by:
I'm trying to receive events from a running instance of Internet Explorer. So far I've only been able to receive events from an instance I launch from code, but I need to receive events from all running instances of Internet Explorer (I mean those that the user launches himself). I know this is possible because I did it three months ago....
3
2811
by: Mark | last post by:
Hi all, Im written a small javascript program. Once it finishs I want to close the internet explorer page. I have used window.close(); when this runs it pops up with a Internet Explorer Dialog box, saying if I want to close this page. Is there a way to automate this process?? I also have the problem with var fso = new...
6
4579
by: tinkerman | last post by:
Hello net friends, I need to automate Internet Explorer in a very simple way. I need to: 1. press refresh (F5) on the currently loaded website. 2. press END button. 3. Click a button somewhere on the screen with the mouse left button (I'm not sure this button can be pressed directly via keysequence, not via mouse, but it does have a...
2
5378
by: Jax | last post by:
I am interested in finding out if it is possible with C# to manipulate IE to go to certain websites and act as a user I basically have a process I wish to automate but this process requires the users to input information which we already have, which I feel is inefficient, how can I code Internet explorer to analyse the HTML, enter the correct...
10
2374
by: milk-jam | last post by:
I'm trying to write a log which save each time internet explorer is opened or closed and all of the url which where visited? Any help is greatly appreciated.
3
17027
by: ewhite2142 | last post by:
I am writing code in VB.Net to access data from the Internet. If I write the following code, I get access to a new instance of Internet Explorer: Imports SHDocVw Dim Br as New InternetExplorer Br.Navigate(http://www.URL.com) However, I want to access the instance of Internet Explorer already running, not create a new instance. I tried...
1
17935
by: chris_j_adams | last post by:
Hi, I'm trying to use Excel VBA ('97) to send details from an Excel sheet to a web page. I'm having some success but I've one issue that's proved difficult to find in the archives. There are a number of elements (ie. text boxes) on this web page that are conditionally "greyed out". They should become visible (ie. not greyed) when a...
3
9580
by: Matthew Lock | last post by:
Hello, I am automating Internet Explorer in order to do some simple automated testing of a web application. How do I invoke Javascript functions in the web page I load? I can successfully start an instance of Internet Explorer and control the DOM, but I don't know how to call Javascript functions. Here is the code I am using so far: ...
26
2240
by: Prisoner at War | last post by:
Hi, All: I have a JavaScript search engine that always causes MSIE 7 to do a top-of-page security "warning" (that top-of-page-bar, and not an "alert" )...but other websites' JavaScripts do not trigger that...what's going on? When I visit other JavaScript sites there's no warning and the scripts work fine, but mine (it's still under...
0
7478
marktang
by: marktang | last post by:
ONU (Optical Network Unit) is one of the key components for providing high-speed Internet services. Its primary function is to act as an endpoint device located at the user's premises. However, people are often confused as to whether an ONU can Work As a Router. In this blog post, we’ll explore What is ONU, What Is Router, ONU & Router’s main...
0
7668
Oralloy
by: Oralloy | last post by:
Hello folks, I am unable to find appropriate documentation on the type promotion of bit-fields when using the generalised comparison operator "<=>". The problem is that using the GNU compilers, it seems that the internal comparison operator "<=>" tries to promote arguments from unsigned to signed. This is as boiled down as I can make it. ...
0
7923
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 tapestry of website design and digital marketing. It's not merely about having a website; it's about crafting an immersive digital experience that...
0
7773
tracyyun
by: tracyyun | last post by:
Dear forum friends, With the development of smart home technology, a variety of wireless communication protocols have appeared on the market, such as Zigbee, Z-Wave, Wi-Fi, Bluetooth, etc. Each protocol has its own unique characteristics and advantages, but as a user who is planning to build a smart home system, I am a bit confused by the...
1
5343
isladogs
by: isladogs | last post by:
The next Access Europe User Group meeting will be on Wednesday 1 May 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 a new presenter, Adolph Dupré who will be discussing some powerful techniques for using class modules. He will explain when you may want to use classes...
0
4960
by: conductexam | last post by:
I have .net C# application in which I am extracting data from word file and save it in database particularly. To store word all data as it is I am converting the whole word file firstly in HTML and then checking html paragraph one by one. At the time of converting from word file to html my equations which are in the word document file was convert...
0
3466
by: TSSRALBI | last post by:
Hello I'm a network technician in training and I need your help. I am currently learning how to create and manage the different types of VPNs and I have a question about LAN-to-LAN VPNs. The last exercise I practiced was to create a LAN-to-LAN VPN between two Pfsense firewalls, by using IPSEC protocols. I succeeded, with both firewalls in...
0
3448
by: adsilva | last post by:
A Windows Forms form does not have the event Unload, like VB6. What one acts like?
1
1025
muto222
by: muto222 | last post by:
How can i add a mobile payment intergratation into php mysql website.

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.