473,408 Members | 2,888 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,408 software developers and data experts.

How to automatically fill in a web page form field?

MLH
I can launch a session of IE from Access 97
database. For instance, I want to page my
friend, I go to http://www.arch.com/message/
then type his 800XXXXXXX number in the
field and click Continue...

I would be happy if I could program
MS Access with the properly formatted
URL string to automatically type the 10-digit
phone number in there for me - so I don't
have to type it in manually each time.

First of all, I'll have to know how to properly
format a URL string to even do that.

Anybody wanna take a stab?
Nov 13 '05 #1
4 5220
MLH wrote:
I can launch a session of IE from Access 97
database. For instance, I want to page my
friend, I go to http://www.arch.com/message/
then type his 800XXXXXXX number in the
field and click Continue...

I would be happy if I could program
MS Access with the properly formatted
URL string to automatically type the 10-digit
phone number in there for me - so I don't
have to type it in manually each time.

First of all, I'll have to know how to properly
format a URL string to even do that.

Anybody wanna take a stab?


Maybe check the classname and caption (see http://www.mvps.org and the
API calls) and see it the proper app is open and at the right site.
There's probably an API call to set focus to the app and then use Sendkeys.
Nov 13 '05 #2
MLH
Maybe check the classname and caption (see http://www.mvps.org and the
API calls) and see it the proper app is open and at the right site.
There's probably an API call to set focus to the app and then use Sendkeys.


Thanks, Salad. I'll check mvps.org for classname and caption, just to
see what that turns up. I already use something like the following to
access another web page...

Dim msXML As Object, strPageContent As String, MyURL As String

Set msXML = CreateObject("Microsoft.XMLHTTP")
MyURL = "http://www.autocheck.com/consumers/gatewayAction.do?siteID=9
56&affid=CDT&vin=" & Me!SerialNum
msXML.Open "GET", MyURL, False
msXML.send
strPageContent = msXML.responseText

So, I've had success with it. But I've been able to provide the full
text of the URL (MyURL) to the msXML.Open statement. The website
I'm trying to hit now poses a bit of a different challenge. Let me
know if you come across anything else that looks promising.
Nov 13 '05 #3
rkc
MLH wrote:
Thanks, Salad. I'll check mvps.org for classname and caption, just to
see what that turns up. I already use something like the following to
access another web page...

Dim msXML As Object, strPageContent As String, MyURL As String

Set msXML = CreateObject("Microsoft.XMLHTTP")
MyURL = "http://www.autocheck.com/consumers/gatewayAction.do?siteID=9
56&affid=CDT&vin=" & Me!SerialNum
msXML.Open "GET", MyURL, False
msXML.send
strPageContent = msXML.responseText

So, I've had success with it. But I've been able to provide the full
text of the URL (MyURL) to the msXML.Open statement. The website
I'm trying to hit now poses a bit of a different challenge. Let me
know if you come across anything else that looks promising.


If you look at the html source of the page at
http://www.arch.com/message/ you will see that the form
action is to send a request for /cgi-bin/wwwpreproc.cgi.
The method is Post so the form's data is not sent as a
query string appended to the url. It's sent in the body
of a message. If you do a search on how to Post a message
using XMLHttp you will eventually sort things out on your
own.

Nov 13 '05 #4
MLH
Thanks, rkc, will give 'er a try.

If you look at the html source of the page at
http://www.arch.com/message/ you will see that the form
action is to send a request for /cgi-bin/wwwpreproc.cgi.
The method is Post so the form's data is not sent as a
query string appended to the url. It's sent in the body
of a message. If you do a search on how to Post a message
using XMLHttp you will eventually sort things out on your
own.


Nov 13 '05 #5

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

Similar topics

3
by: paul b | last post by:
Hello, I have a small problem in PHP an perhaps someone can help me: I have a simple HTML login page with a username and a password field, as well as a submit button, which I have to use for...
1
by: Song Zhang | last post by:
I need to write asp/script/html code to fill the following function. 1. When a page appA.mycom.com/aa.html (aa.html code shown below) is visited from my site, a user can click the button "Launch",...
4
by: Barry Margolin | last post by:
Can I do the following with Javascript? My state has a web site that can be used for online filing for unemployment benefits. Every week I have to go to the site and fill in a form, checking...
1
by: Frankie | last post by:
Hi, In my form users must enter data about new employees. One of the fields is the birthdate of an employee. The next field is a registration number that looks like this: 0YYMMDD. 0: first...
7
by: jballard | last post by:
Hello, I have a database set-up with a form and two subforms in it. I have one of the subforms (replacement parts) set-up where you can pick part numbers from a drop down box and also pick a...
6
by: MROPARTNER | last post by:
I have a field in a form called "Date" I am looking to fill this text field with the current date. Is there a way to do this with ASP or an easier way? Thanks Bill
10
by: RoadRunner | last post by:
Hi, I have a employee vacation database that has a vacation table that has the employee name, pay week and date of vacation. I have another lookup table with pay week code and date range for the...
4
by: JA | last post by:
Not exactly sure how to explain this. I have 4 fields (in access 2000). Category, Catid, Subcat, subcatid. There are 40 categories, and about 1500 subcats. I've added the categories to the...
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:
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...
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
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,...
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...
0
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...
0
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...

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.