Solved

How to click radio button on webpage with this name and value

Posted on 2006-11-16
3
180 Views
Last Modified: 2010-04-30
<INPUT type=radio name=".dd_r" value=".jj_ym">


I've tried ie.document.body.all(".dd_r").checked = "1" and a bunch of variations of that but no go.
0
Comment
Question by:JohnDoeSr
  • 2
3 Comments
 
LVL 19

Expert Comment

by:BrianGEFF719
ID: 17962245
Are you using the IE Control?
0
 
LVL 19

Accepted Solution

by:
BrianGEFF719 earned 250 total points
ID: 17962250
For IE Control you would do something like:

   Set objframes = WebBrowser1.Document.frames
   Set objdoc = objframes.Document
   Set htmlfield = objdoc.getelementsbyname(".dd_r")
   htmlfield(0).checked = "1"

Tell me if that works for you.


Brian
0
 

Author Comment

by:JohnDoeSr
ID: 17963479
Yep that did it. Thanks!
0

Featured Post

Is Your Active Directory as Secure as You Think?

More than 75% of all records are compromised because of the loss or theft of a privileged credential. Experts have been exploring Active Directory infrastructure to identify key threats and establish best practices for keeping data safe. Attend this month’s webinar to learn more.

Question has a verified solution.

If you are experiencing a similar issue, please ask a related question

Suggested Solutions

I’ve seen a number of people looking for examples of how to access web services from VB6.  I’ve been using a test harness I built in VB6 (using many resources I found online) that I use for small projects to work out how to communicate with web serv…
Background What I'm presenting in this article is the result of 2 conditions in my work area: We have a SQL Server production environment but no development or test environment; andWe have an MS Access front end using tables in SQL Server but we a…
Get people started with the process of using Access VBA to control Outlook using automation, Microsoft Access can control other applications. An example is the ability to programmatically talk to Microsoft Outlook. Using automation, an Access applic…
Get people started with the process of using Access VBA to control Excel using automation, Microsoft Access can control other applications. An example is the ability to programmatically talk to Excel. Using automation, an Access application can laun…

867 members asked questions and received personalized solutions in the past 7 days.

Join the community of 500,000 technology professionals and ask your questions.

Join & Ask a Question

Need Help in Real-Time?

Connect with top rated Experts

18 Experts available now in Live!

Get 1:1 Help Now