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

filling HTML forms from VB

111 100+
Hey guys,

I'm trying to open a webpage from VB and fill in a form on that page with values from a database. I'm using VBA from Access 2003. This is where im at right now (not very far...im still a beginner to VB):

Referencing the Microsoft Internet Controls lib.

Expand|Select|Wrap|Line Numbers
  1. Public Sub Command0_Click()
  2. Dim webBrowser1 As WebBrowser
  3. Dim findString As String
  4.  
  5.     Set webBrowser1 = New WebBrowser
  6.     Set webBrowser1 = CreateObject("InternetExplorer.Application")
  7.     webBrowser1.Navigate2 "http://www.webaddress.com"
  8.     webBrowser1.Visible = True
  9. Do
  10.     DoEvents
  11. Loop Until Not webBrowser1.Busy
  12.  
  13.  
  14. End Sub
i know i need to look at the HTML source code of the webpage to reference the fields on the form, i just dont know how to code this. Can anyone help with this?

Thanks.
Oct 2 '07 #1
0 1043

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

Similar topics

0
by: zelnaga | last post by:
i'm connecting to the internet via a proxy, and am having problems filling out forms... below is the code i have, and below that is the http request i am trying to make it look like. they look...
0
by: hboothe_no_spam | last post by:
Hello, all, I've read through both of the groups I'm posting to, and all over the groups, regarding filling PDF forms with data from VB. I have Acrobat 5 (and the SDK), and am using VB 6. I can...
1
by: jobi.joy | last post by:
I have a requirement of having the capability of offline form filling for my website.So users can some way download the form and can fill out in offline mode. Any standard way to do this. I am...
1
by: Krzysztof Karnicki | last post by:
I have such a problem… I have create my custom DataGridColumn inheriting from System.Windows.Forms.DataGridColumnStyle on using it on DataGrid, to show rows painted by me self. Because dates ...
13
by: Oliver Hauger | last post by:
Hello, In my html form I show a select-element and if this element is clicked I fill it per JavaScript/DOM with option-elements. I use the following code: <!DOCTYPE HTML PUBLIC "-//W3C//DTD...
6
by: Radium | last post by:
Is it possible to fill out a form on an foreign website. E.g. is it possible to fill out the google form from a php script and then initialize the search? Thx Axel
3
by: luanhoxung | last post by:
Hi ! i'm falling in headache status. i have 3 forms linking together by the sub/main form way. 1st form named fcontract: biggest 2nd form named fdetailcontract 3rd named fshipmentcontract: is...
1
by: John | last post by:
Is there an automatic way of filling forms that have been generated using javascript? I tried to use python+mechanize but am having trouble with javascript forms. This is the way the form is...
3
by: Thirdworld | last post by:
I'm building my first database and I'm having trouble using data as a reference on different forms. Is there any way that data submitted by one form could be used immediately as a reference for...
2
by: Toni Pohl | last post by:
Hi, some years ago I´ve implemented an classic ASP form which fills in data from a database into a PD-form. I used the free FDF Toolkit which worked very well. After submitting the PDF the...
0
by: DolphinDB | last post by:
Tired of spending countless mintues downsampling your data? Look no further! In this article, you’ll learn how to efficiently downsample 6.48 billion high-frequency records to 61 million...
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: ArrayDB | last post by:
The error message I've encountered is; ERROR:root:Error generating model response: exception: access violation writing 0x0000000000005140, which seems to be indicative of an access violation...
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...
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: af34tf | last post by:
Hi Guys, I have a domain whose name is BytesLimited.com, and I want to sell it. Does anyone know about platforms that allow me to list my domain in auction for free. Thank you

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.