Click here to Skip to main content
15,920,708 members
Home / Discussions / Visual Basic
   

Visual Basic

 
AnswerRe: Port data from MS Word to SQL Server Pin
Member 959774822-Feb-15 23:41
Member 959774822-Feb-15 23:41 
GeneralRe: Port data from MS Word to SQL Server Pin
Richard MacCutchan23-Feb-15 0:00
mveRichard MacCutchan23-Feb-15 0:00 
GeneralRe: Port data from MS Word to SQL Server Pin
Member 959774823-Feb-15 2:57
Member 959774823-Feb-15 2:57 
GeneralRe: Port data from MS Word to SQL Server Pin
Richard MacCutchan23-Feb-15 3:20
mveRichard MacCutchan23-Feb-15 3:20 
GeneralRe: Port data from MS Word to SQL Server Pin
Member 959774826-Feb-15 22:29
Member 959774826-Feb-15 22:29 
GeneralRe: Port data from MS Word to SQL Server Pin
Chris Quinn23-Feb-15 0:21
Chris Quinn23-Feb-15 0:21 
GeneralRe: Port data from MS Word to SQL Server Pin
Member 959774823-Feb-15 2:58
Member 959774823-Feb-15 2:58 
QuestionForm manipulation via VBS - need form to update after 1st selection Pin
Member 1146779320-Feb-15 10:45
Member 1146779320-Feb-15 10:45 
I created a script to BEGIN to do what I need. This script interacts with the initial form.

I can fill out the form and submit, but it errors.

Upon further inspection, after a selection is made in the first dropdown field, the form is supposed to refresh with updated dropdown options.

With my code, it doesn't allow the form to refresh after the first selection is made. Here is my somewhat-working code:

VB
set ie = createobject("internetexplorer.application") 
Set objShell = CreateObject("WScript.Shell")

ie.navigate "https://www.myfloridalicense.com/wl11.asp?Mode=1&SID=&brd=&typ="
ie.Visible = True
do until ie.readystate = 4 : wscript.sleep 10: loop 

IE.Document.getElementsByTagName("select")("Board").Value = "25"
do until ie.readystate = 4 : wscript.sleep 10: loop 
IE.Document.getElementsByTagName("select")("County").Value = "11"
IE.Document.getElementsByTagName("select")("RecsPerPage").Value = "50"

For Each btn In IE.Document.getElementsByTagName("input")
If btn.type = "image" Then 
btn.Click()
Next

My question is - how do I allow the form to update after the first selection? First selection being:
VB
IE.Document.getElementsByTagName("select")("Board").Value = "25"


I tried adding this after, but no dice:
VB
do until ie.readystate = 4 : wscript.sleep 10: loop 


Thanks in advance
QuestionWhy this query produce wrong results ? Pin
dilkonika20-Feb-15 6:46
dilkonika20-Feb-15 6:46 
AnswerRe: Why this query produce wrong results ? Pin
Dave Kreskowiak20-Feb-15 9:39
mveDave Kreskowiak20-Feb-15 9:39 
GeneralRe: Why this query produce wrong results ? Pin
dilkonika20-Feb-15 9:45
dilkonika20-Feb-15 9:45 
GeneralRe: Why this query produce wrong results ? Pin
Dave Kreskowiak20-Feb-15 10:56
mveDave Kreskowiak20-Feb-15 10:56 
GeneralRe: Why this query produce wrong results ? Pin
dilkonika20-Feb-15 11:10
dilkonika20-Feb-15 11:10 
GeneralRe: Why this query produce wrong results ? Pin
Dave Kreskowiak20-Feb-15 12:37
mveDave Kreskowiak20-Feb-15 12:37 
GeneralRe: Why this query produce wrong results ? Pin
dilkonika20-Feb-15 12:47
dilkonika20-Feb-15 12:47 
GeneralRe: Why this query produce wrong results ? Pin
Dave Kreskowiak20-Feb-15 14:23
mveDave Kreskowiak20-Feb-15 14:23 
GeneralRe: Why this query produce wrong results ? Pin
dilkonika20-Feb-15 14:30
dilkonika20-Feb-15 14:30 
GeneralRe: Why this query produce wrong results ? Pin
Dave Kreskowiak20-Feb-15 16:38
mveDave Kreskowiak20-Feb-15 16:38 
GeneralRe: Why this query produce wrong results ? Pin
dilkonika20-Feb-15 17:01
dilkonika20-Feb-15 17:01 
GeneralRe: Why this query produce wrong results ? Pin
Dave Kreskowiak20-Feb-15 17:54
mveDave Kreskowiak20-Feb-15 17:54 
GeneralRe: Why this query produce wrong results ? Pin
dilkonika21-Feb-15 5:27
dilkonika21-Feb-15 5:27 
GeneralRe: Why this query produce wrong results ? Pin
Dave Kreskowiak21-Feb-15 7:35
mveDave Kreskowiak21-Feb-15 7:35 
GeneralRe: Why this query produce wrong results ? Pin
dilkonika21-Feb-15 7:53
dilkonika21-Feb-15 7:53 
GeneralRe: Why this query produce wrong results ? Pin
Dave Kreskowiak21-Feb-15 8:01
mveDave Kreskowiak21-Feb-15 8:01 
GeneralRe: Why this query produce wrong results ? Pin
dilkonika21-Feb-15 8:05
dilkonika21-Feb-15 8:05 

General General    News News    Suggestion Suggestion    Question Question    Bug Bug    Answer Answer    Joke Joke    Praise Praise    Rant Rant    Admin Admin   

Use Ctrl+Left/Right to switch messages, Ctrl+Up/Down to switch threads, Ctrl+Shift+Left/Right to switch pages.