Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations strongm on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

How do I get the value from a Option Group

Status
Not open for further replies.

99Chuck99

Programmer
Dec 11, 2003
67
US
I have a data access page with several option groups. How would I retrieve the value selected by user.I have tired the following any help would be great

msgbox WINDOW.MSODSC.CurrentSection.HTMLContainer.children("ELECTSHOULDBEMAINTAINED").checked

msgbox WINDOW.MSODSC.CurrentSection.HTMLContainer.children("ELECTSHOULDBEMAINTAINED").value
 
this works in js:
form_name.field_name.options[form_name.field_name.selectedIndex].text
 
and this one in vbs:
form_name.field_name.options(form_name.field_name.selectedIndex).text
 
Thanks for the input but I'm working on a Data access page that has bands and I think I have to use something simuliar to the code I've listed. Thanks
 
Data access pages and bands sounds like Microsoft Access and not so much ASP.

Are you wanting to do something with ASP?

 
Yes, This is Access DAP. I might be in the wrong place to ask this question. Not sure.
 
Try forum702

___________________________________________________________
If you want the best response to a question, please check out FAQ222-2244 first.
'If we're supposed to work in Hex, why have we only got A fingers?'
Drive a Steam Roller
Steam Engine Prints
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top