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

Writing in a field on a webpage

553 512MB
Hi

I am trying 2 different methods to accomplish my requirement - With OLE and without OLE

The requirement is to simply open a webpage with Internet browser - Done this one

Now type in something in the field on the page.

I have used SendKeys() but it doesn't seems to write anything in the field.

Note: When the webpage opens, the cursor is already in the field.

Could any one help me how could i do this please

Awaiting

Thanks
qi
Dec 21 '08 #1
1 1238
GazMathias
228 Expert 128KB
Hi,

A webpage with a form would pass its information through to either itself for processing, or another page designed specifically for precessing the data passed.

The page receiving the data would get the values from either the querystring or from POST (depending on the form's setup).

In the first scenario, say we have a simple page called form.php with one field that asks for your name, the field on that page could be called txtname. When you press the submit button, the page would send its data to another page called processing.php. The form would redirect the browser to this URL:

Expand|Select|Wrap|Line Numbers
  1. http://www.somesite.com/processing.php?txtname=Gaz
What you can do in Access is simply avoid the first page altogether and call the processing page directly:

Expand|Select|Wrap|Line Numbers
  1. Dim IE
  2. Dim URL As String
  3.  
  4. Set IE = CreateObject("InternetExplorer.Application")
  5.  
  6. URL = "http://somesite.com/processing.php?txtname=" & Me.txtname ' Where Me.txtname is a field on the Access form calling this code.
  7.  
  8. IE.Navigate (URL)
  9. IE.Visible = True
  10.  
If the form is sending its data using POST, then we would have to populate the form data like you want, but you would have to make changes to that page, namely some Java Script to receive values from the querystring, fill in the form data and then (maybe) submit the page too.

Obviously, that is beyond the scope of the Access forum. Once you have that page working correctly, the Access principle remains the same.

Gaz
Dec 21 '08 #2

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

Similar topics

1
by: t.kiesche | last post by:
Hello I want to make a textfield (INPUT type=text) or something that looklike this, to drop down a list with word. Just like: A user writes the letter 'a' and in the dropdown list come a...
2
by: linearfusion | last post by:
Hello, I may not have worded the subject correctly, but what I am trying to do is pull the XML data from the following stream,...
15
by: Cerebral Believer | last post by:
Hi all, I am a newbie to JavaScript and am just trying to get a script going that will write the ful date and time to each webpage as it is viewed. Can anyone point out what mistakes there are...
1
by: ChrisFrohlich | last post by:
ASP.NET 2.0 with Text DataTypes: I've got a similar question going in the SQL group, but I was wondering if anyone has successfully implemented reading/writing character data from a Text datatype...
1
by: Dan Somdahl | last post by:
Hi, I am new to ASP but have what should be a fairly simple task that I can't figure out. I need to parse a string from a single, semi-colon delimited, 60 character field (el_text) in a recordset...
1
by: Dan Somdahl | last post by:
Hi, I am new to ASP but have what should be a fairly simple task that I can't figure out. I need to parse a string from a single, semi-colon delimited, 60 character field (el_text) in a recordset...
1
by: Sudarhan | last post by:
Hello frnds I have created a webbased form using asp and javascript .. while submitting the form i am validating the fields in the form .it validates the field and returns alert message. but when...
9
by: sreemathy2000 | last post by:
I have a fully function webpage based on a Zipcode. I get the Zip code from the user once and write it the cookie and retrieve that everytime. I also have another webpage which also asks for the...
15
colinod
by: colinod | last post by:
Hi I have the following code and it works fine if i want the total to be in a form field but i want to write the amount to the webpage using document.write, have tried all sorts but cant get it to...
0
by: ryjfgjl | last post by:
ExcelToDatabase: batch import excel into database automatically...
0
isladogs
by: isladogs | last post by:
The next Access Europe meeting will be on Wednesday 6 Mar 2024 starting at 18:00 UK time (6PM UTC) and finishing at about 19:15 (7.15PM). In this month's session, we are pleased to welcome back...
0
by: Vimpel783 | last post by:
Hello! Guys, I found this code on the Internet, but I need to modify it a little. It works well, the problem is this: Data is sent from only one cell, in this case B5, but it is necessary that data...
0
by: jfyes | last post by:
As a hardware engineer, after seeing that CEIWEI recently released a new tool for Modbus RTU Over TCP/UDP filtering and monitoring, I actively went to its official website to take a look. It turned...
1
by: PapaRatzi | last post by:
Hello, I am teaching myself MS Access forms design and Visual Basic. I've created a table to capture a list of Top 30 singles and forms to capture new entries. The final step is a form (unbound)...
1
by: Defcon1945 | last post by:
I'm trying to learn Python using Pycharm but import shutil doesn't work
1
by: Shællîpôpï 09 | last post by:
If u are using a keypad phone, how do u turn on JavaScript, to access features like WhatsApp, Facebook, Instagram....
0
by: Faith0G | last post by:
I am starting a new it consulting business and it's been a while since I setup a new website. Is wordpress still the best web based software for hosting a 5 page website? The webpages will be...
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...

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.